默认MVVP I have seen有多个通过数据模板呈现的 ViewModel 对象。每个 ViewModel 通过自己的属性公开命令。
I would like to merge ViewModel commands with the menu so when different tabs are selected, the menu changes based on what the ViewModel does.执行此操作的最佳方法是什么?
最佳答案
This link为此提供了一个很好的框架。
关于c# - 如何将菜单与 WPF MVVM 合并?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/854786/