Labels

Monday, June 21, 2010

Silverlight - Startup Sequence

Application Events

 

1.    The user requests the HTML entry page in the browser.

2.    The browser loads the silverlight plug-in. It then downloads the XAP file that contains your application.

3.    The Silverlight plug-in reads the AppManifest.xml file from the XAP to find out what assemblies your application uses. It creates the Silverlight runtime environment  and then loads your application assembly (along with any dependent assemblies).

4.    The Silverlight plug-in creates an instance of your custom application class (which is defined in the App.xaml and App.xaml.cs files).

5.    The default constructor of the application class raises the Startup event.

6.    Your application handles the Startup event and creates the root visual object for your application.

 

From this point on, your page code takes over, until it encounters an unhandled error (UnhandledException) or finally ends (Exit).

 

These events– are the core events that the Application class provides

 

·         Startup,  

·         UnhandledException, and

·         Exit

 

Along with these standards, the Application class includes two events– that are designed for use with the out-of-browser applications

 

·         InstallStateChanged and

·         CheckAndDownloadUpdateCompleted

 

Regards,

Arun Manglick

No comments:

Post a Comment