VisualStateManager:当状态B处于活动状态时如何停止状态A的执行?

发布于 2024-11-30 18:22:04 字数 173 浏览 5 评论 0原文

当鼠标悬停在按钮上时,我已经成功地增加了按钮内图像的比例。

现在,如果我要对 ToggleButton 使用相同的概念,情况会稍微更具挑战性。

当切换按钮处于“选中”状态时,我不希望鼠标悬停状态触发其缩放动画,但仍应触发颜色动画。

我怎么可能实现这个目标?

非常感谢,

I have successfully managed to increase the scale of an image inside a button as soon as the mouse is hovered over the button.

Now if I was going to use the same concept for a ToggleButton the situation would be slightly more challenging.

When the toggleButton is in 'checked' State, I don't wish the mouseover state to fire its scaling animation, but the color animations should still be fired.

How could I possibly achieve this?

Many Thanks,

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文