Recommended

Skip Navigation LinksHome / Tips / View Tip

Tip: How to handle Silverlight application startup?

+ Add to SilverlightShow Favorites
0 comments   /   posted by Denislav Savkov on Sep 03, 2008
(0 votes)
Categories: General

Sometimes you might need to handle the application startup event of a Silverlight application in order to initialize or perform any other operations required by your internal logic. Exactly for this reason there is an Startup event located in your project application class that directly derives from System.Windows.Application. In most cases the name of this class is App and you can access its Startup event like this:

C#

   App.Current.Startup += new StartupEventHandler( ApplicationStartup );

Keep in mind that this event is fired only once in the absolute start of the application, when no controls have been still instantiated.

That's it!

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 1 and 5 and type the answer here:

Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)