- antsonthetree
- Posts: 44
- Joined:
LoadXaml in Unity
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!");
}
}
- antsonthetree
- Posts: 44
- Joined:
Re: LoadXaml in Unity
UPDATE: I got it. I was thinking Noesis instead of thinking Xaml. I just needed to add it to a container on the main window. All good now.
Jake
Jake
Re: LoadXaml in Unity
Thanks for the feedback Jake! Closing this.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot], Semrush [Bot] and 33 guests