为什么状态转换故事板强制“坚持”?缓动列表框?

发布于 2025-01-03 16:33:30 字数 287 浏览 3 评论 0原文

我正在尝试使用混合中的视觉状态管理器来动画状态转换。对于简单的状态转换,我没有多控制、多键故事板,似乎可以工作。当我尝试实现一个复杂的故事板作为状态转换的一部分时,我遇到了麻烦。

我有一个列表框,我正在尝试在画布上设置运动动画。当我使用 Blend 设计器移动它时,它会注册动画,但移动的缓动设置为“保持”,我无法更改它。这似乎正在制作一个 DiscreteObjectKeyFrame 动画,虽然我相信我想要一个双动画,但我不确定如何使混合做到我想要的。动画不透明度似乎按预期工作。

如何使用线性缓动动画列表框在画布上的位置?

I am trying to use the Visual State Manager in blend to animate a state transition. For simple state transitions where I do not have a multi-control, multi-key storyboard things seem to work. When I try to implement a complex storyboard as part of a state transition I am having trouble.

I have a listbox that I am trying to animate movement on a canvas. When I move it using the Blend designer it registers the animation, but the easing for the move is set to "Hold In" and I can not change it. This seems to be making a DiscreteObjectKeyFrame animation, while I believe I want a double animation, but I'm not sure how to make blend do what I want here. Animating opacity seems to work as expected.

How do I animate the listbox's position on the canvas with a linear easing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小ぇ时光︴ 2025-01-10 16:33:30

这是由于尝试对仅支持离散帧动画的属性进行动画处理而导致的。要使其正常工作,您必须使用动画的自定义路径或选择支持平滑动画的另一个属性(最好是 double 类型)。

This was caused by trying to animate a property that only supports discrete frame animation. To get this to work, you have to use a custom path for the animation or pick another property (preferably of type double) that supports smooth animation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文