The App type exposes the following members.

Constructors

  NameDescription
Public methodApp
Initializes a new instance of the App class

Methods

  NameDescription
Public methodCheckAccess
Determines whether the calling thread has access to this DispatcherObject.
(Inherited from DispatcherObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindResource
Searches for a user interface (UI) resource, such as a Style or Brush, with the specified key, and throws an exception if the requested resource is not found (see Resources Overview).
(Inherited from Application.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeComponent
Public methodStatic memberMain
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnActivated
Raises the Activated event.
(Inherited from Application.)
Protected methodOnDeactivated
Raises the Deactivated event.
(Inherited from Application.)
Protected methodOnExit
Raises the Exit event.
(Inherited from Application.)
Protected methodOnFragmentNavigation
Raises the FragmentNavigation event.
(Inherited from Application.)
Protected methodOnLoadCompleted
Raises the LoadCompleted event.
(Inherited from Application.)
Protected methodOnNavigated
Raises the Navigated event.
(Inherited from Application.)
Protected methodOnNavigating
Raises the Navigating event.
(Inherited from Application.)
Protected methodOnNavigationFailed
Raises the NavigationFailed event.
(Inherited from Application.)
Protected methodOnNavigationProgress
Raises the NavigationProgress event.
(Inherited from Application.)
Protected methodOnNavigationStopped
Raises the NavigationStopped event.
(Inherited from Application.)
Protected methodOnSessionEnding
Raises the SessionEnding event.
(Inherited from Application.)
Protected methodOnStartup
Raises the Startup event.
(Inherited from Application.)
Public methodRun()()()()
Starts a Windows Presentation Foundation (WPF) application.
(Inherited from Application.)
Public methodRun(Window)
Starts a Windows Presentation Foundation (WPF) application and opens the specified window.
(Inherited from Application.)
Public methodShutdown()()()()
Shuts down an application.
(Inherited from Application.)
Public methodShutdown(Int32)
Shuts down an application that returns the specified exit code to the operating system.
(Inherited from Application.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodTryFindResource
Searches for the specified resource.
(Inherited from Application.)
Public methodVerifyAccess
Enforces that the calling thread has access to this DispatcherObject.
(Inherited from DispatcherObject.)

Extension Methods

  NameDescription
Public Extension MethodApplyTheme (Defined by ThemeManager.)

Properties

  NameDescription
Public propertyDispatcher
Gets the Dispatcher this DispatcherObject is associated with.
(Inherited from DispatcherObject.)
Public propertyMainWindow
Gets or sets the main window of the application.
(Inherited from Application.)
Public propertyProperties
Gets a collection of application-scope properties.
(Inherited from Application.)
Public propertyResources
Gets or sets a collection of application-scope resources, such as styles and brushes.
(Inherited from Application.)
Public propertyShutdownMode
Gets or sets the condition that causes the Shutdown()()()() method to be called.
(Inherited from Application.)
Public propertyStartupUri
Gets or sets a UI that is automatically shown when an application starts.
(Inherited from Application.)
Public propertyWindows
Gets the instantiated windows in an application.
(Inherited from Application.)

Events

  NameDescription
Public eventActivated
Occurs when an application becomes the foreground application.
(Inherited from Application.)
Public eventDeactivated
Occurs when an application stops being the foreground application.
(Inherited from Application.)
Public eventDispatcherUnhandledException
Occurs when an exception is thrown by an application but not handled.
(Inherited from Application.)
Public eventExit
Occurs just before an application shuts down, and cannot be canceled.
(Inherited from Application.)
Public eventFragmentNavigation
Occurs when a navigator in the application begins navigation to a content fragment, Navigation occurs immediately if the desired fragment is in the current content, or after the source XAML content has been loaded if the desired fragment is in different content.
(Inherited from Application.)
Public eventLoadCompleted
Occurs when content that was navigated to by a navigator in the application has been loaded, parsed, and has begun rendering.
(Inherited from Application.)
Public eventNavigated
Occurs when the content that is being navigated to by a navigator in the application has been found, although it may not have completed loading.
(Inherited from Application.)
Public eventNavigating
Occurs when a new navigation is requested by a navigator in the application.
(Inherited from Application.)
Public eventNavigationFailed
Occurs when an error occurs while a navigator in the application is navigating to the requested content.
(Inherited from Application.)
Public eventNavigationProgress
Occurs periodically during a download that is being managed by a navigator in the application to provide navigation progress information.
(Inherited from Application.)
Public eventNavigationStopped
Occurs when the StopLoading method of a navigator in the application is called, or when a new navigation is requested by a navigator while a current navigation is in progress.
(Inherited from Application.)
Public eventSessionEnding
Occurs when the user ends the Windows session by logging off or shutting down the operating system.
(Inherited from Application.)
Public eventStartup
Occurs when the Run()()()() method of the Application object is called.
(Inherited from Application.)

See Also