本文介绍了检查故事板是否完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
正如标题所示,我想检查故事板是否已完成。
as the title says, I want to check if a storyboard is finished.
我添加了A按钮和一些图像到我的应用程序。如果你点击按钮,一个故事板开始,让图像移动一秒钟(精确的运动是无关紧要的,我认为:))。但是当故事板完成后,图像将返回
到他们原来的位置。
I've added A button and some images to my application. If you klick the button, a Storyboard begins which lets the images move around for one second (the excact movement is irrelevant, i think :) ). But when the storyboard is finished, the images shall return to their old position.
推荐答案
为Storyboard.Completed事件添加事件处理程序:
add an event handler to the Storyboard.Completed event:
C#
storyboard.Completed += storyboard_Completed;
这篇关于检查故事板是否完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!