我想移动矩形对象的动画以在x轴上移动它.我是WPF动画的新手,从以下开始:
<Storyboard x:Key="MoveMe">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="GroupTileSecond"
Storyboard.TargetProperty="(**Margin.Left**)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="**134, 70,0,0**" />
<SplineDoubleKeyFrame KeyTime="00:00:03" Value="**50, 70,0,0**" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
Run Code Online (Sandbox Code Playgroud)
很明显发现,我不能使用Margin.Left的Storyboard.TargetProperty或使用134,70,0,0的Value属性.
那么,如何在XAML WPF中移动对象.