Silverlight

Capter 5 The Application Mode(P157)

1.客户请求一个HTML页面

2.Silverlight插件加载,同时负责下载XAP文件在你的程序域

3.Silverlight插件读取调用XAP文件下的AppMainfest.xml文件来查找你的程序所需要的程序集,并建立Silverlight的运行环境和加载所需要的程序集。

4.Silverlight插件实例化

Silverlight piug-in creat an instance of your custom application calss (which is defined in the App.xaml and App.xaml.cs files

5.应用程序类的默认构造函数触发Startup事件

6.你的应用程序响应Startup事件并且建立一个启动页。

现在,你的页面已经呈现出来,直到遇见错误或者退出,Application calss仅仅提供了Startup,UnhanledException,Exit 三个事件。

如果你打开App.cs 文件,你会看到这三个时间的声明:

 

 

posted @ 2008-08-02 14:41  MicroCoder  阅读(247)  评论(0编辑  收藏  举报