我想用 SplinePointAnimationWithKeyframes 为一些椭圆设置动画,但我不知道我必须为情节提要设置哪个目标属性:
StoryBoard.SetTargetProperty(splineAnimation, Canvas.???);
谢谢你的帮助!
我想用 SplinePointAnimationWithKeyframes 为一些椭圆设置动画,但我不知道我必须为情节提要设置哪个目标属性:
StoryBoard.SetTargetProperty(splineAnimation, Canvas.???);
谢谢你的帮助!
请参阅PointAnimation中的示例部分,了解如何Center
为EllipseGeometry
.
如果您想制作动画,比如说 Ellipse 元素的Canvas.Left
and Canvas.Top
,您需要在 Storyboard 中有两个单独的动画。例如,对TranslateTransformX
的和Y
属性进行动画处理也是如此。