WPF Binding a visual brush's visual to a different window.
Posted
by highone
on Stack Overflow
See other posts from Stack Overflow
or by highone
Published on 2010-04-04T00:28:59Z
Indexed on
2010/04/04
0:33 UTC
Read the original article
Hit count: 591
wpf
|visualbrush
I need a rectangle in my settings window to display a scaled down version of of the main window. This is the non-working code that I have right now. Is it possible to do what I want to do?
<Rectangle.Fill>
<VisualBrush Stretch="Uniform" Visual="{Binding ElementName=local:MainWindow}" />
</Rectangle.Fill>
© Stack Overflow or respective owner