Anyone know how to set the CenterX property of a ScaleTransform (on an
Image object) NOT using XAML?
Here is how I do this in XAML:
<Image Grid.Row="0"
Name="image1"
MouseMove="image1_MouseMove"
MouseDown="image1_MouseDown"
MouseUp ="image1_MouseUp">
<Image.RenderTransform>
<ScaleTransform ScaleX="2" ScaleY="2" CenterX="250"
CenterY="200">
</ScaleTransform>
</Image.RenderTransform>
</Image>
The problem is, I need to set CenterX and CenterY dynamically to the
center of the window, which can be resized at any time by the user.
Thanks
-Dean