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.
我有一个设置窗口,我正在尝试对其进行设置,以便实时预览当前设置下主窗口的外观。这是当前设置对话框的图片。大的黑色矩形将是预览。
这实际上是 View 的实现细节,因此您可以在 XAML 中寻找方法来执行此操作(将画笔移动到共享动态资源?),或者,如果存在直接依赖关系,则通过在使用 Visual 更新“子”视图的视图。您可能还可以进行其他不需要这种耦合的重构,但是如果没有更多细节就很难说。我不会尝试通过 ViewModel 路由任何这些。