当前位置:编程学习 > wap >>

Windows Phone 7 Tips (6)

1. Windows Phone 7 页面的启动顺序: 当应用程序被加载时,一个PhoneApplicationFrame会被创建。然后这个Frame会告知导航到MainPage。当页面加载和导航的时候,启动画面会被显示。当导航任务完毕后,Navigated事件被加载,这时候会把PhoneApplicationFrame设为应用程序的RootVisual。此时,应用程序对用户才可用,具体的顺序图如下:

\

 2. PhoneApplicationFrame与PhoneApplicationPage的关系图如下

\

3. 不同于WPF中以Windows作为根容器,Silverlight中均以UserContro作为根容器

4. PhoneApplicationFrame与PhoneApplicationPage的一个显著区别是:在一个wp7应用程序中,PhoneApplicationFrame只有一个,而PhoneApplicationPage可以有很多个

5. 在页面导航中可以使用CanGoBack判断是否可以回退到上一页。但是与之相对应的CanGoForward却始终返回false,我们不应该在程序中使用CanForward

6. Application Tile由三部分组成 : A、173*173的背景图片 B、标题(一般是应用程序标题的简写或者是描述程序特征的词语) C、数量(代表程序的待更新数目) 

7. Windows Phone 7 支持三种形式的推送通知(Push Notification):Tile、Toast 和Raw。以下分别为其的英文解释:

Tile: Update the Application Tile on the Start

Toast: Create a toast pop-up that is displayed over the current screen

Raw: A notification intended to be processed by the application itself; it is transparent to the user. unless the application decides otherwise.

8. Push Notification的流程图如下(大家可以联想 Jake Lin 讲的好莱坞故事)

 \

9. Push Notification中的一些事件

 \

10. 推送通知的好处

A、节省用户的电池电量。

B、你可以通过推送通知来告知你的用户在程序中发生了一些有趣的事,即使程序没有运行


作者:Alexis

补充:移动开发 , Windows Phone ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,