Answer the question
In order to leave comments, you need to log in
Xaml - How to dynamically change window contents (example: main window -> settings)?
A picture, for example, no matter what the content is, the main thing is to stay in the same window. In WinForms, this can be done with Panel. How can this be achieved in xaml?
Answer the question
In order to leave comments, you need to log in
There are many ways.
Here are a few:
1. Use the MVVM example
2. Create a UserControl with content and load them into a ContentPresenter container
3. Pages
4. Content templates
5. TabPages can also be used as a last resort. Tabs can be hidden in WPF.
here it is quite well described, but in relation to a prism (it will be difficult to understand right off the bat):
navogation in prism
, in
short, can be done in 2 ways: switching controls (view-based) or changing the state of the view model (state-based), that is, hiding certain flag elements.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question