views:

43

answers:

1

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 current settings. Here is a picture of what the settings dialog looks like at the moment. The big black rectangle will be the preview. alt text

+1  A: 

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.

Dan Bryant