如何在页面加载完成之前阻止故事板播放? [英] How to prevent a storyboard from playing until the page is finished loading?

查看:65
本文介绍了如何在页面加载完成之前阻止故事板播放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与页面加载事件关联的非常简单的故事板。这很快,.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();

}

推荐答案

您是否尝试过设置StoryBoard.Begin Page.Loaded事件中的()?

Did you try to put the StoryBoard.Begin() in the Page.Loaded event?


这篇关于如何在页面加载完成之前阻止故事板播放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆