Follow the steps mentioned here to apply rotation to an Image control:
- From Solution Explorer, right-click on the project node and create a new folder. Name it as Images.
- Now right-click on the Images folder and add an existing image from your system. Name it image1.png.
- Open the MainWindow.xaml file and replace the existing Grid with a horizontal StackPanel.
- Insert the following XAML mark-up inside the StackPanel to add two images the application window. The first image will have an opacity set to 20%, and the second image will have a RotateTransform set at an angle of 45 degrees:
<Image Height="300" Width="260" Margin="4" Opacity="0.2" Source="Images/image1.png"/> <Image Height="300" Width="260" Margin="4" Source="Images/image1.png"> <Image.RenderTransform> <RotateTransform Angle="45"/> <...