WPF desktop application with multiple views
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!
No comments:
Post a Comment