LoadXaml in Unity
Posted: 18 Feb 2018, 18:32
Hello,
I am trying to load a "confirmation window" xaml in the onClick code behind of a button. I have added the ConfirmWindow to the Preloaded Xamls section of the Noesis settings page, and the LoadXaml call does indeed return an object. However nothing is getting displayed on the screen. What am I missing? Do I need to make another call to have the ConfirmWindow appear on screen?
I am trying to load a "confirmation window" xaml in the onClick code behind of a button. I have added the ConfirmWindow to the Preloaded Xamls section of the Noesis settings page, and the LoadXaml call does indeed return an object. However nothing is getting displayed on the screen. What am I missing? Do I need to make another call to have the ConfirmWindow appear on screen?
Code: Select all
private void btnExit_Click(object sender, RoutedEventArgs e)
{
string path = "Assets/NoesisGUI/Samples/HelloWorld/ConfirmWindow.xaml";
ConfirmWindow cw = (ConfirmWindow)Noesis.GUI.LoadXaml(path);
if (cw != null)
{
Debug.Log("all good here but nothing shows on screen!");
}
}