IApplication Interface

Definition

Class that represents a cross-platform .NET MAUI application.

public interface class IApplication : Microsoft::Maui::IElement
public interface IApplication : Microsoft.Maui.IElement
type IApplication = interface
    interface IElement
Public Interface IApplication
Implements IElement
Derived
Implements

Properties

Handler

Gets or sets the View Handler of the Element.

(Inherited from IElement)
Parent

Gets the Parent of the Element.

(Inherited from IElement)
UserAppTheme

Gets the current requested theme by the system for your application. The return value will be one of the following:

  • Unspecified
  • Light
  • Dark
Windows

Gets the instantiated windows in an application.

Methods

CloseWindow(IWindow)

Requests that the application closes the window.

CreateWindow(IActivationState)

Instantiate a new window.

OpenWindow(IWindow)

Requests that the application open a new window.

ThemeChanged()

Notify a theme change.

Extension Methods

ToHandler(IElement, IMauiContext)
ToPlatform(IElement, IMauiContext)

Applies to