简体   繁体   English

如何在Windows手机的启动画面中为图像制作动画?

[英]How to animate image in splash screen for windows phone?

I am working on windows phone app in which I need to animate an object in the splash screen. 我正在使用Windows Phone应用程序,我需要在启动画面中为对象设置动画。 In the below image you can see that, as soon as the splash screen appears. 在下图中,您可以看到,只要出现闪屏。 The ball.png bounces and only after completing the bounce, the app continues into the application. ball.png反弹,只有在完成反弹后,应用程序才会继续进入应用程序。 How to do this task? 怎么做这个任务?

在此输入图像描述

You have to follow thoses steps to create an animated splashscreen : 您必须按照步骤创建动画闪屏:

  • You have to create a new Page on your application (called SplashScreen.xaml) and set it as your 'HomePage'. 您必须在应用程序上创建一个新页面(称为SplashScreen.xaml)并将其设置为“主页”。
  • You create a storyboard to build your animation. 您可以创建一个故事板来构建动画。
  • You subscribe to the Loaded event of the SplashScreen page, and start your storyboard . 您订阅了SplashScreen页面的Loaded事件,并启动故事板
  • When the storyboard is done (subscribe to the Completed event), you can navigate to your Homepage. 故事板完成后(订阅已完成的事件),您可以导航到您的主页。

Hope it helps ! 希望能帮助到你 !

Use Extended Splash Screen and set the animation to the image. 使用Extended Splash Screen并将动画设置为图像。 For more details visit here . 有关详细信息, 请访问此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM