-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide
By :

Silverlight allows us to handle application-level events. They are the Startup, Exit
, and UnhandledException
events. These events can be used to hook into the application lifecycle. All of these events are found in the App.xaml.cs
file.
The Application_Startup
event is fired as soon as the application is initiated, meaning right after the XAP file is loaded to the user's computer and inspected by the Silverlight runtime engine. By default the Application_Startup
event is used to load the default visual page into view. Other use of this event is to perform different initialization tasks, such as processing initialization parameters or setting application-wide resources or properties. For example, if you pass InitParams
from the Silverlight HTML object to the application, you'll have to process them inside this event with code as follows:
IDictionary<string, string> iParams = e.InitParams;
The Application_UnhandledException
event enables us to handle...
Change the font size
Change margin width
Change background colour