日期:2014-05-17 浏览次数:20935 次
<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>