diff --git a/ZuneUIXTools/MainWindow.xaml.cs b/ZuneUIXTools/MainWindow.xaml.cs index 973e1aa..c2a27d8 100644 --- a/ZuneUIXTools/MainWindow.xaml.cs +++ b/ZuneUIXTools/MainWindow.xaml.cs @@ -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(); } } } diff --git a/test/testA.uib b/test/testA.uib index 8a89d88..58e8671 100644 Binary files a/test/testA.uib and b/test/testA.uib differ diff --git a/test/testA.uix b/test/testA.uix index cf0d936..9fcb1fa 100644 --- a/test/testA.uix +++ b/test/testA.uix @@ -1,5 +1,10 @@ - + + + Howdy from Microsoft.Iris! + white + + \ No newline at end of file