7.1. The Application Life Cycle

In WPF, applications go through a straightforward life cycle. Shortly after your application begins, the application object is created. As your application runs, various application events fire, which you may choose to monitor. Finally, when the application object is released, your application ends.

NOTE

WPF allows you to create full-fledged applications that give the illusion of running inside a web browser. These applications are called XBAPs, and you'll learn how to create them (and how to take advantage of the browser's page-based navigation system) in Chapter 24. However, it's worth noting that XBAPs use the same Application class, fire the same lifetime events, and use assembly resources in the same way ...

Get Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.