Application is a class
that encapsulates WPF application-specific
functionality, including the following:
- Application Lifetime: Activated, Current, Deactivated, DispatcherUnhandledException, Exit, Run, SessionEnding, Shutdown, ShutdownMode, Startup.
- Application-Scope Window, Property, and Resource Management: FindResource, GetContentStream, GetResourceStream, LoadComponent, MainWindow, Properties, Resources, StartupUri, Windows.
- Command-Line Parameter and Exit Code Processing: Application Startup , Application Exit , Application Shutdown .
- Navigation: FragmentNavigation, LoadCompleted, Navigated, Navigating, NavigationProgress, NavigationStopped, NavigationFailed, GetCookie.
Codes : App.xaml.txt, App.xaml.cs.txt, MainWindow.xaml.txt, MainWindow.xaml.cs.txt