Application Application Application Application Constructor

Definition

Initializes a new instance of the Application class.

public : Application()
Application() const;
public Application()
Public Sub New()

Remarks

The Application object is typically provided in the initial XAML for App.xaml. The default project templates in Visual Studio generate an App class that derives from Application. This class associates itself with the XAML by calling the generated InitializeComponent method in its constructor. You can add additional initialization code to the App constructor, but you will typically only add code to associate handlers to Application events. For other initialization code, you should override one or more initialization methods such as OnLaunched.