我正在构建一个 WPF 独立应用程序。It consists of a menu on the left of the window and when a menu option is selected I want a page showing content related to the option selected shown on the right hand side of the window.
如果用户选择不同的菜单选项,则将加载新视图。
如果用户选择了先前选择的菜单选项,则将显示该视图,但它将保持其状态。因此,如果有一个以“bob”作为名字的客户的结果集,那么当我再次查看它时,结果集仍将显示。
我的问题是实现这一点的最佳方法是什么。
页面不适合,因为该应用程序不会在浏览器中查看。
我看不到母版页 -> 内容布局方法。
那么这是加载自定义控件的情况吗?
我正在使用 MVVM 模式。
任何帮助,将不胜感激。