Page 1 of 1

[SOLVED] How to open a new "window" in a scene

Posted: 27 Jul 2020, 22:32
by Ian-Gungee
Since NoesisGUI is a windowless API, one can't simply call window.Show(); How is similar functionality achieved with Noesis?

All I really want to be able to do is display a user control above another to allow menu navigation, like displaying a settings menu.
Does a NoesisView object need to be created? Then a reference to the XAML would need to be passed, rather than simply creating a 'new Window()'?

Excuse me if this has already been answered, but I was unable to find a solution with the searches that I made, and the functionality doesn't seem to be demonstrated in any of the samples (Though the QuestLog does fake it with animations...)

Re: How to open a new "window" in a scene

Posted: 28 Jul 2020, 11:01
by sfernandez
You can have a root xaml with a known container/panel where you can add new user controls.
<UserControl x:Class="MyApp.RootWindow"
  <Menu VerticalAlignment="Top">...</Menu>
  <Grid x:Name="windowsPanel"/>
You don't need to create a NoesisView for each user control unless you want an application that spawns operating system windows for each of these controls, but I don't think that is what you want.

Re: How to open a new "window" in a scene

Posted: 28 Jul 2020, 16:12
by Ian-Gungee
Haha naturally. Don't know why I didn't think of that.
Thanks for the quick response sfernandez!