(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Tip: How to handle Silverlight application startup?

(0 votes)
Denislav Savkov
>
Denislav Savkov
Joined Feb 11, 2008
Articles:   14
Comments:   6
More Articles
0 comments   /   posted on Sep 03, 2008
Tags:   denislav-savkov
Categories:   Line-of-Business , 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!


Subscribe

Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook