#38 – The Application Class

Application is a class that represents a WPF application running as a standalone client application in Windows.  Each running application contains at most a single instance of Application.

WPF applications created using the Visual Studio 2013 New Project wizard will contain the definition of the Application object in the App.xaml file.

<Application x:Class="WpfApplication9.App"


The Application object is responsible for:

  • Managing application lifetime (e.g. responding to startup/shutdown events)
  • Window, property and resource management
  • Command-line processing
  • Navigation