开发者

Want to play button animation to the end as it has been fired

开发者 https://www.devze.com 2023-03-07 16:09 出处:网络
I have a button.I开发者_StackOverflow中文版 set an awesome animation to my button. It fires when the button has been clicked.But, if finger release button TOO quickly - animation will fade to initial

I have a button. I开发者_StackOverflow中文版 set an awesome animation to my button. It fires when the button has been clicked. But, if finger release button TOO quickly - animation will fade to initial values, so user will NOT see all the beauty of my animation. Also I have an event for this button...

What I want: User press button >> Animation starts and plays to the end >> logic-event trigger fires.

The question is - can I do it SIMPLE way? Setting some values in XAML?

Because the only way I know is:

User press button >> In code fires event trigger, that fires my animation >> animation-completed-trigger fires my logic-event.

Is there a way to achieve it more simply?

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消