Page 1 of 1

MULTIPLE VIEWS C++

Posted: 08 Oct 2024, 02:59
by GamingPo
Hello, I have a question about creating a game interface. For example, I listed that I might need 34 windows. Possibly, it would be one view for each. Then I saw some topics about creating just one Noesis::CreateView as a Window.xaml and maybe using ItemsControl or something similar to display the views that are in a visible state. My question is, is this correct? Also, do I need to create a class, perhaps a UserControl for each window and use Noesis::GUI::LoadComponent after initialization? I'm using C++

Re: MULTIPLE VIEWS C++

Posted: 09 Oct 2024, 15:04
by jsantos
View instances are resource-intensive, so we always recommend creating as few as possible. In your case, a single View is sufficient, and you can dynamically update the root content using code. To load each screen, you can use Noesis::GUI::LoadXaml(PATH_TO_XAML). Please refer to our C++ examples for guidance.