From 77ba8a55bcfc368558a2dd0fac58309336b5fbcf Mon Sep 17 00:00:00 2001 From: Joshua Askharoun Date: Fri, 2 Apr 2021 23:06:02 -0500 Subject: [PATCH] First complete sample --- ZuneUIXTools/MainWindow.xaml.cs | 15 +++++++++++++-- test/testA.uib | Bin 175 -> 356 bytes test/testA.uix | 7 ++++++- 3 files changed, 19 insertions(+), 3 deletions(-) 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 8a89d8852d985e821f4fd132ac8da28bdb23d29a..58e867154958c0ca01b6363ef72bc56a939d95c2 100644 GIT binary patch literal 356 zcmWIbbdvhQ%)nsA$iUzQ#VL#o4FCV{VgLa~5WxT;SsDKQ2eJPBXJTMr`1hX~OtOGU zRt5$JMuz|Y|Nj>T>%dNc)MCnj%wc0-U|?c^kRY=ls+bsf7#J8pCQ30dFfcPPvNJF+ zuz+0m|33!<1A__!1A_qr1A_?z1A`p{1A_|#1A`9(14A$a149f0149J^0|Qq>sAo`q zeo07baS2mHs3%85SY~RuXGv-K5qpDkeqKpxUWrtL zM}B!qr9xU!ey)OVW^z$}aei8fo@Y^Ju_7ZAgCYY14 - + + + Howdy from Microsoft.Iris! + white + + \ No newline at end of file