Here is my XAML:
<Image VerticalAlignment="Center" HorizontalAlignment="Center" Source="{Binding Input, Converter={StaticResource ByteArrayToBitmapConverter}}"> <Image.RenderTransform> <RotateTransform Angle="{Binding RotateAngle}" CenterX="100" CenterY="100"></RotateTransform> </Image.RenderTransform> </Image>
I bind the image to the data source and use the converter to get the Bitmap. This part works. However, I want it to spin, and I install RotateAngle in my virtual machine. The problem is that all images have different sizes, I donβt know how to install CenterX and CenterY. Is there any other way to just change the orientation without calculating extra X and Y?
katit source share