1 <UserControl.Resources> 2 <Storyboard x:Name="sb" Storyboard.TargetName="myrotate" Storyboard.TargetProperty="Angle" > 3 <DoubleAnimation From="0" To="360" Duration="0:0:1"></DoubleAnimation> 4 </Storyboard> 5 </UserControl.Resources> 6 <Grid x:Name="LayoutRoot" Background="White" Margin="0,0,-204,-64"> 7 <Image Source="Images/1.jpg" x:Name="image1" HorizontalAlignment="Left" Width="353"> 8 <Image.RenderTransform> 9 <RotateTransform x:Name="myrotate"></RotateTransform> 10 </Image.RenderTransform> 11 </Image> 12 <Button Content="Button" HorizontalAlignment="Left" Height="30" Width="75" RenderTransformOrigin="-0.559,0.252" Click="Button_Click" Margin="379,165,0,169"/> 13 </Grid>