GamingPo
Topic Author
Posts: 10
Joined: 12 Sep 2024, 05:25

MULTIPLE VIEWS C++

08 Oct 2024, 02:59

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++
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: MULTIPLE VIEWS C++

09 Oct 2024, 15:04

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.

Who is online

Users browsing this forum: Google [Bot] and 1 guest