请问WPF中如何使用动画绘制一条曲线?
<DoubleAnimationUsingPath
Storyboard.TargetName="MyRotateTransform"
Storyboard.TargetProperty="Angle"
Source="Angle"
Duration="0:0:5"
RepeatBehavior="Forever" AutoReverse="True" >
<DoubleAnimationUsingPath.PathGeometry>
<PathGeometry Figures="M 10,100 C 35,0 135,0 160,100 180,190 285,200 310,100" />
</DoubleAnimationUsingPath.PathGeometry>
</DoubleAnimationUsingPath>
<Storyboard x:Key="Storyboard1">
<DoubleAnimation From="0" To="1" Duration="0:0:5" Storyboard.TargetProperty="(Shape.Stroke).(LinearGradientBrush.GradientStops)[0].Offset" Storyboard.TargetName="path"/>
<DoubleAnimation From="0" To="1" Duration="0:0:5" Storyboard.TargetProperty="(Shape.Stroke).(LinearGradientBrush.GradientStops)[1].Offset" Storyboard.TargetName="path"/>
</Storyboard>
<Path x:Name="path" Data="M 10,100 C 35,0 135,0 160,100 180,190 285,200 310,100" StrokeThickness="2">
<Path.Stroke>
<LinearGradientBrush EndPoint="1,0" StartPoint="0,0">
<GradientStop Color="Black" Offset="0"/>
<GradientStop Color="Transparent" Offset="0"/>
</LinearGradientBrush>
</Path.Stroke>
</Path>