C# 如何在WPF中按程序旋转图像?
我想按程序旋转WPF中的图像。我见过如何将旋转绑定到控件。但是,我想将旋转绑定到对象的角度。我该怎么做?C# 如何在WPF中按程序旋转图像?,c#,wpf,graphics,C#,Wpf,Graphics,我想按程序旋转WPF中的图像。我见过如何将旋转绑定到控件。但是,我想将旋转绑定到对象的角度。我该怎么做? <Image Source="{Binding ElementName=ImageList,Path=SelectedItem.Image}"> <Image.LayoutTransform> <RotateTransform Angle="{Binding RotationProperty}"/> </Image.Layou
<Image Source="{Binding ElementName=ImageList,Path=SelectedItem.Image}">
<Image.LayoutTransform>
<RotateTransform Angle="{Binding RotationProperty}"/>
</Image.LayoutTransform>
</Image>
来源+更多信息:
来源+更多信息: