Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个与 Visual Studio 具有相似界面的应用程序,其中有一个可以打开、编辑和保存的文档列表。每个文档可以是不同的类型并具有不同的编辑器。
我也有一个通用的 Save MenuItem。我想要做的是让 Save 命令只保存活动文档。是否有使用 MVVM 将文档 VM 连接到 Save 的标准模式MenuItem?
MenuItem
我不知道标准方式,但我会尝试以下方法: