Once I asked how to display multiple views in one window in a windows-forms-application (link).
Now I’d like to know how to do the same in an WPF-application.
Once I asked how to display multiple views in one window in a windows-forms-application
Share
You could have in your MainWindow.xaml, just one Stackpanel. Nothing else.
You define all your views in other xaml files. Just that the parent element is not a Window. You need to have it as a Grid/StackPanel.
When you want to load a new view, you just set the appropriate view’s root element(or the view itself) as the Children of the StackPanel in MainWindow.xaml