mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
First complete sample
This commit is contained in:
@@ -48,17 +48,28 @@ namespace ZuneUIXTools
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
string testDir = @"D:\Repos\yoshiask\ZuneUIXTools\test\";
|
||||
string testName = "testA";
|
||||
string sourceFile = System.IO.Path.Combine(testDir, testName) + ".uix";
|
||||
string compiledFile = System.IO.Path.Combine(testDir, testName) + ".uib";
|
||||
|
||||
bool isSuccess = MarkupCompiler.Compile(
|
||||
new[]
|
||||
{
|
||||
new CompilerInput()
|
||||
{
|
||||
OutputFileName = @"D:\Repos\yoshiask\ZuneUIXTools\test\testA.uib",
|
||||
SourceFileName = @"D:\Repos\yoshiask\ZuneUIXTools\test\testA.uix"
|
||||
SourceFileName = sourceFile,
|
||||
OutputFileName = compiledFile
|
||||
}
|
||||
},
|
||||
new CompilerInput()
|
||||
);
|
||||
|
||||
Microsoft.Iris.Application.Initialize();
|
||||
Microsoft.Iris.Application.Window.SetBackgroundColor(new WindowColor(80, 0, 0));
|
||||
Microsoft.Iris.Application.Window.RequestLoad("file://" + compiledFile + "#UIRootTest");
|
||||
Microsoft.Iris.Application.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
+6
-1
@@ -1,5 +1,10 @@
|
||||
<UIX xmlns="http://schemas.microsoft.com/2007/uix">
|
||||
<UI Name="UIRootTest">
|
||||
|
||||
<Content>
|
||||
<Text>
|
||||
<Content>Howdy from Microsoft.Iris!</Content>
|
||||
<Color>white</Color>
|
||||
</Text>
|
||||
</Content>
|
||||
</UI>
|
||||
</UIX>
|
||||
Reference in New Issue
Block a user