我尝试使用
<animations:AnimationCollection x:Name="UnHoverCollection">
<animations:Vector2Animation To="10,10" Target="Margin" />
</animations:AnimationCollection>
和这个动画
<animations:AnimationCollection x:Name="UnHoverCollection">
<animations:Vector4Animation To="10,10,10,10" Target="Margin" />
</animations:AnimationCollection>
并执行下一个错误
”找不到指定的属性或无法为其设置动画。上下文: 保证金表达:保证金起始位置:0,结束位置:6“
如何制作动画?
答案 0 :(得分:1)
如果要移动对象,给边界设置动画不是一个好主意。这些动画类型主要根据X,Y坐标进行操作。我建议您可以使用TranslationAnimation或OffsetAnimations。您可以参考此document来移动对象。