Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Application Members

Encapsulates a Windows Presentation Foundation (WPF) application.

The following tables list the members exposed by the Application type.

  Name Description
Public method Application Initializes a new instance of the Application class.
Top
  Name Description
Public property Static Current Gets the Application object for the current AppDomain.
Public property Dispatcher  Gets the Dispatcher this DispatcherObject is associated with. (inherited from DispatcherObject)
Public property MainWindow Gets or sets the main window of the application.
Public property Properties Gets a collection of application-scope properties.
Public property Resources Gets or sets a collection of application-scope resources, such as styles and brushes.
Public property ShutdownMode Gets or sets the condition that causes the Shutdown method to be called.
Public property StartupUri Gets or sets a UI that is automatically shown when an application starts.
Public property Windows Gets the instantiated windows in an application.
Top
(see also Protected Methods )
  Name Description
Public method CheckAccess  Determines whether the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method FindResource Searches for a user interface (UI) resource, such as a Style or Brush, with the specified key, and raises an exception if the requested resource is not found (see Resources Overview).
Public method Static GetContentStream Returns a resource stream for a content data file that is located at the specified Uri (see Windows Presentation Foundation Application Data Files).
Public method Static GetCookie Retrieves a cookie for the location specified by a Uri.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Static GetRemoteStream Returns a resource stream for a site-of-origin data file that is located at the specified Uri (see Windows Presentation Foundation Application Data Files).
Public method Static GetResourceStream Returns a resource stream for a resource data file that is located at the specified Uri (see Windows Presentation Foundation Application Data Files).
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static LoadComponent Overloaded. Loads a XAML file that is located at the specified uniform resource identifier (URI).
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Run Overloaded. Starts a Windows Presentation Foundation (WPF) application.
Public method Static SetCookie Creates a cookie for the location specified by a Uri.
Public method Shutdown Overloaded. Shuts down an application.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method TryFindResource Searches for the specified resource.
Public method VerifyAccess  Enforces that the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Top
  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnActivated Raises the Activated event.
Protected method OnDeactivated Raises the Deactivated event.
Protected method OnExit Raises the Exit event.
Protected method OnFragmentNavigation Raises the FragmentNavigation event.
Protected method OnLoadCompleted Raises the LoadCompleted event.
Protected method OnNavigated Raises the Navigated event.
Protected method OnNavigating Raises the Navigating event.
Protected method OnNavigationFailed Raises the NavigationFailed event.
Protected method OnNavigationProgress Raises the NavigationProgress event.
Protected method OnNavigationStopped Raises the NavigationStopped event.
Protected method OnSessionEnding Raises the SessionEnding event.
Protected method OnStartup Raises the Startup event.
Top
  Name Description
Public event Activated Occurs when an application becomes the foreground application.
Public event Deactivated Occurs when an application stops being the foreground application.
Public event DispatcherUnhandledException Occurs when an exception is raised by the application but not handled.
Public event Exit Occurs just before an application shuts down, and cannot be canceled.
Public event FragmentNavigation 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.
Public event LoadCompleted Occurs when content that was navigated to by a navigator in the application has been loaded, parsed, and has begun rendering.
Public event Navigated 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.
Public event Navigating Occurs when a new navigation is requested by a navigator in the application.
Public event NavigationFailed Occurs when an error is raised while a navigator in the application is navigating to the requested content.
Public event NavigationProgress Occurs periodically during a download that is being managed by a navigator in the application to provide navigation progress information.
Public event NavigationStopped 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.
Public event SessionEnding Occurs when the user ends the Windows session by logging off or shutting down the operating system.
Public event Startup Occurs when the Run method of the Application object is called.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.