While it's running, every WPF application is represented by an instance of the System.Windows.Application class. This class tracks all the open windows in your application, decides when your application shuts down, and fires application events that you can handle to perform initialization and cleanup.
The Application class isn't one of the more fascinating parts of WPF. However, because every WPF application uses the Application class, learning how it works is required reading. In this chapter, you'll quickly get the essentials.
The System.Windows.Application class plays the same role in a WPF application as the System.Windows.Forms.Application class plays in a Windows Forms application. But Microsoft, always happy to reinvent ...