0
我正在使用Silverlight 4,试图为arcsegment的大小属性设置动画效果。我唯一成功的动画类型是ObjectAnimationUsingKeyFrames。事实证明这是一种痛苦,所以我试着在size属性的高度和宽度上做一个双动画,但是这不起作用。Silverlight XAML圆弧段大小动画
<Path Stroke="Red" StrokeThickness="20">
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="0,200">
<ArcSegment x:Name="ArcSeg1" Size="100,100" RotationAngle="0" IsLargeArc="True"
SweepDirection="Clockwise" Point="200,200" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
<DoubleAnimation
Storyboard.TargetName="ArcSeg1"
Storyboard.TargetProperty="Size.Width"
From="100"
To="50"
Duration="00:00:05"
/>
但是,这不仅导致了以下错误:
不能指定对象上解决TargetProperty Size.Width。
在此先感谢。