如何在页面加载完成之前阻止故事板播放? [英] How to prevent a storyboard from playing until the page is finished loading?
问题描述
我有一个与页面加载事件关联的非常简单的故事板。这很快,.25秒。问题是在页面加载时(我们有一个非常大的解决方案所以需要几秒钟)动画已经完成。我知道它的工作原因是当我刷新页面时,我看到了它。任何关于如何防止故事板播放直到页面加载完成的想法?谢谢!
$
私人 void grid_Loaded( 对象 发件人, RoutedEventArgs e) { I have a very simple storyboard associated to the page load event. It's very quick, .25 of a second. The problem is by the time the page loads (we have a very large solution so it takes a few seconds) the animation is already complete. I know its working because when I refresh the page I see it. Any idea's on how to prevent the storyboard from playing until the page is finished loading? Thanks! private void grid_Loaded(object sender, RoutedEventArgs e)
{ 此 。Storyboard1.Begin(); } this.Storyboard1.Begin();
} 这篇关于如何在页面加载完成之前阻止故事板播放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
推荐答案
您是否尝试过设置StoryBoard.Begin Page.Loaded事件中的()?
Did you try to put the StoryBoard.Begin() in the Page.Loaded event?