如何在window phone 8应用程序开发中设置启动画面 [英] how to set splash screen in window phone 8 Application development
问题描述
我是 Window Phone 应用程序开发的新手.所以我只想在应用程序启动时添加启动画面,而不使用任何额外的启动画面页面导航.
I am new in Window Phone Apps Development .So I just Want to Add Splash Screen When the application launch without using any extra Page navigation for splash screen.
推荐答案
如果只想添加单张图片,就创建一张480*800
大小的图片,命名为SplashScreenImage.jpg
并将该图像放在根文件夹中.
If you want to add just single image, then create a pic in the size of 480*800
and name it as SplashScreenImage.jpg
and put that image in the root folder.
完成!启动画面将显示在应用上.
Done! Splash Screen will be displayed on the app.
如果要根据屏幕分辨率添加多张图片,则创建三张图片,大小分别为480*800
、768*1280
和720*1280
并将这些图片命名为
If you want to add several images with respect to the screen resolution, then create three pictures in the sizes of 480*800
, 768*1280
, and 720*1280
and name those pic as
SplashScreenImage.screen-WVGA.jpg
,
SplashScreenImage.screen-WXGA.jpg
,
SplashScreenImage.screen-720p.jpg
并将这些图片放在根文件夹中.
SplashScreenImage.screen-720p.jpg
and put these pictures in the root folder.
完成!启动画面将根据手机的原生屏幕分辨率显示在应用上.
Done! Splash Screen will be displayed on the app with respect to phone's native screen resolution.
注意:
要修改 SplashScreen 的显示时间,以下代码可能有用.在 InitializeComponent();
To modify the displaying time of SplashScreen, following code may be useful. Paste below code after InitializeComponent();
Thread.Sleep(2000);
这意味着,应用程序将在 2000 毫秒后激活.您可以根据自己的意愿进行更改.希望,这可以解决您的疑问.!!
It means, the app will be activated after 2000 milli seconds. You can change as per your wish. Hope, this solves your doubt.!!
这篇关于如何在window phone 8应用程序开发中设置启动画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!