I put some TextBlock and Image in the plotter, but when I zoom the image(text block) doesnt zoom.
How is the right way to apply the transformation on the plotter in my objects?
Nov 13, 2009 at 3:38 PM
This is how it is possible to put controls inside the plotter so that they zoom and pan:
<Button Content="Button" d3:ViewportPanel.ViewportBounds="0.1,0.1,0.3,0.3"/>
<Border BorderBrush="Yellow" BorderThickness="1">
<TextBlock Text="Text in Viewbox"/>
ViewportBounds property sets the entire rectangle in the visible area, occupied by the control that sets this property on it.
I put TextBlock into Viewbox to enable TextBlock's zooming.