如何在 SketchFlow 中动画结束时转到新屏幕

发布于 2024-08-17 18:07:55 字数 124 浏览 3 评论 0原文

我有几个屏幕是使用按钮连接来来回导航的。然而,当“Loaded”事件发生时,有一个屏幕会播放动画。我想在当前屏幕的动画完成时转到“下一个”屏幕。

有人可以建议我如何在 Sketchflow 中实现这一目标吗?提前致谢。

I have few screens that are wired up using Buttons to navigate to and fro. However, there is one screen that plays an animation when "Loaded" event occurs. I want to go to the "next" screen when the current screen's animation finishes.

Could someone suggest how I can achieve this in Sketchflow? Thanks in advance.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓬勃野心 2024-08-24 18:07:55

不幸的是,目前在 SketchFlow 中没有简单的方法来做到这一点。

您可以通过将另一个屏幕作为组件屏幕包含到您的屏幕中并在动画结尾处显示它来伪造这一点。

Unfortunately there is no easy way to do this currently in SketchFlow.

You could fake this by having another screen included into your screen as a component screen, and displaying it at the end of your animation.

等你爱我 2024-08-24 18:07:55

好吧,我认为有一种方法......

首先给你的故事板命名

<Storyboard x:Name="anima"></Storyboard>

,然后进入“.cs”文件

//connect it to a listener

Storyboard ST = this.FindName("anima") as Storyboard;
ST.Completed += new EventHandler(AnimaListener);

//the listener
void AnimaListener(object sender, EventArgs e)
{
      Microsoft.Expression.Prototyping.Services.PlayerContext.Instance.ActiveNavigationViewModel.NavigateToScreen("nameOfTheNewScreen", true); 
}

http://social.expression.microsoft.com/Forums/en/blend/thread/e2970c76-6968-40db-a9c2-fca5d56f3f9f

我在哪里找到了导航代码

http://www.eggheadcafe。 com/software/aspnet/30084553/storyboard-completed-event.aspx

我在其中找到了如何将故事板链接到侦听器

Well i think there is a way...

Start out with giving your storyboard a name

<Storyboard x:Name="anima"></Storyboard>

then go into the ".cs" file

//connect it to a listener

Storyboard ST = this.FindName("anima") as Storyboard;
ST.Completed += new EventHandler(AnimaListener);

//the listener
void AnimaListener(object sender, EventArgs e)
{
      Microsoft.Expression.Prototyping.Services.PlayerContext.Instance.ActiveNavigationViewModel.NavigateToScreen("nameOfTheNewScreen", true); 
}

http://social.expression.microsoft.com/Forums/en/blend/thread/e2970c76-6968-40db-a9c2-fca5d56f3f9f

Where i found the navigation code

http://www.eggheadcafe.com/software/aspnet/30084553/storyboard-completed-event.aspx

Where i found how to link a storyboard to a listener

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文