I have a WPF application running on Windows 8. It is the one-window application that has three different views in the whole client area of the main window: live video from a webcam, help screen, and resource usage status. As you can see they are not related or interact each other, but I want to show them in one window rather than poping up a new window. The views will be switched by clicking a button in each view or by typing a keyboard shortcut.
I'm currently implementing each view using UserControl, and then adding/removing those UserControls in the grid of MainWindow on user events. I'm not sure if using the UserControl is the right direction because UserControl brings up the image of small widgets like buttons rather than a whole window content to me.
Am I doing correctly? I just looked at the Page control, but I'm not sure if it is a good idea. Thanks in advance!
There is nothing wrong with a
UserControl
providing the bulk (or all) of the content for aWindow
. In fact, this is fairly common when using frameworks, as the Window is created for you in some frameworks.I would not worry about using a
UserControl
for this.