I am making a wpf application. I am very new to WPF. I have a main layout screen which has a background content and other screens that have the layout plus some more controls exclusive to those screens.
I am doing it as:
The main layout screen is a Window and the other dedicated screens are user controls.
For every specialized screen, I am doing this:
Application.Current.MainWindow mw;
mw.Content = nameOfCurrentUserControl;
Is this idea fine?
nameOfCurrentUserControl.DataContext = myDataObject(you could go much further in depth, but i think that is beyond the scope of the question - Timothy Groote