This documentation is archived and is not being maintained.
How to: Get the Current Application Object
This example shows how to get a reference to the Application object instance for the current AppDomain.
The following example shows how to get a reference to the current Application object instance from the Current property.
// Get a reference to the current Application object
Application currentApplication = Application.Current;