I have a settings window and am trying to set it up so that there is a live preview what the main window will look like with the c开发者_Go百科urrent settings. Here is a picture of what the settings dialog looks like at the moment. The big black rectangle will be the preview.
This is really an implementation detail of the View, so you could look for ways to do this within the XAML (Move the brush to a shared dynamic resource?) or, if there is a direct dependency relationship, by using code-behind in the View to update the 'child' View with the Visual. There may also be other refactorings you could do that don't require this type of coupling, but it's hard to say without more detail. I wouldn't try to route any of this through the ViewModel.
精彩评论