zoukankan      html  css  js  c++  java
  • 使用C#开发Metro 风格应用的路线图 添加启动画面

    1、默认的启动画面其实是那个3点钟的钟表图片,而我们需要在Package.appxmanifest文件中的Application UI模块里重新选择splash图片即可.

    图片的大小得是 620*300,或者868 x 420 (1.4倍) ,1116 x 540(1.8倍),支持PNG

    当重新激活应用时启动画面也会显示.

    2、如果想延时启动画面的显示时间,得在启动画面显示完成后自己添加模拟启动画面的页面,但是在两个画面衔接时会有闪烁。

    这里有一段话教怎么避免这个难看的闪烁,但是我没有完全看懂,希望园子里看懂的朋友翻译一下

    If you use fragment loading to load your imitation splash screen page, you may notice a flicker between when the Windows splash screen is dismissed and when your page is displayed. You see this flicker because fragment loading begins to load your imitation splash screen page asynchronously, before the activated event handler finishes executing. You can avoid this unsightly flicker entirely by avoiding the use of fragment loading in your imitation splash screen page. When your additional loading tasks are complete (as demonstrated by the Splash screen sample) you can then navigate to your app’s main page. Alternatively, if you wish to continue the use of fragment loading in your imitation splash screen page, you can also prevent the flicker by getting a deferral and responding to activated events asynchronously. Get a deferral for an activated event by calling the activatedOperation.getDeferral method.

    注意:不要使用启动画面显示广告,也不要把启动画面当成about页面。

  • 相关阅读:
    07-汤姆猫
    快捷键
    UIImageView属性
    UIImagePickerController
    UIDatePicker
    并发编程简介
    区别值类型数据和引用类型数据
    用条件属性而不是#if
    选择is或者as操作符而不是做强制类型转换
    始终使用属性(Property),而不是字段(Data Member)
  • 原文地址:https://www.cnblogs.com/icuit/p/2478157.html
Copyright © 2011-2022 走看看