neitz33a

I have a Canvas which contains a drawing. Is there some way to have another view of the canvas possibly side by side with different rotation/scaling/etc.. transforms

i.e. An area that would show a zoomed in portion of the drawing without requiring the entire tree to be duplicated.


Re: Windows Presentation Foundation (WPF) Multiple Views

Josh Smith

Perhaps put a <Rectangle> in the other Canvas and set it's Fill to a VisualBrush whose Visual property is set to the original Canvas. Then you could rotate/scale/etc the Rectangle. Does that solve the issue




Re: Windows Presentation Foundation (WPF) Multiple Views

SerialSeb

For a zoom, a VisualBrush would be ideal. You just need to apply a ScaleTransform on it.