First complete sample

This commit is contained in:
Joshua Askharoun
2021-04-02 23:06:02 -05:00
parent fca23736c9
commit 77ba8a55bc
3 changed files with 19 additions and 3 deletions
+13 -2
View File
@@ -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();
}
}
}
BIN
View File
Binary file not shown.
+6 -1
View File
@@ -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>