答案 0 :(得分:1)
要旋转图像,您可以使用此功能:
public void Rotate(Image image, double angle) {
image.RenderTransform = new RotateTransform()
{
CenterX = image.ActualWidth / 2,
CenterY = image.ActualHeight / 2,
Angle = angle
};
}
要添加动画,您可以添加故事板:
<Storyboard x:Key="Storyboard">
<DoubleAnimation Storyboard.TargetProperty="(Image.RenderTransform).RotateTransform.Angle)" To="360" Duration="0:0:1" RepeatBehavior="Forever" />
</Storyboard>
https://msdn.microsoft.com/en-us/windows/uwp/graphics/storyboarded-animations