Constructors
- Application() Initializes a new instance of the Application class.
Methods
- Exit() sealed Exits the application
- Initialize() virtual Initializes the application by loading XAML etc.
-
On
Exiting(Object, protectedvirtual Called when the application is exiting.Event Args) -
Register
Services() virtual Register's the services needed by Avalonia. -
Run(Cancellation
Token) Runs the application's main loop until the CancellationToken is canceled. - Run(ICloseable) Runs the application's main loop until the ICloseable is closed.
- Run(Window) Runs the application's main loop until some condition occurs that is specified by ExitMode.
Properties
-
Avalonia.
Controls. privatesealedIResource Node. Resource Parent -
Avalonia.
Controls. privatesealedIResource Provider. Has Resources -
Avalonia.
Controls. privatesealedTemplates. IData Template Host. Is Data Templates Initialized -
Avalonia.
Styling. privatesealedIStyle Host. Is Styles Initialized -
Avalonia.
Styling. privatesealed Gets the styling parent of the application, which is null.IStyle Host. Styling Parent - Clipboard Gets the application clipboard.
- Current static Gets the current instance of the Application class.
-
Data
Templates sealed Gets or sets the application's global data templates. -
Exit
Mode Gets or sets the ExitMode. This property indicates whether the application exits explicitly or implicitly. If ExitMode is set to OnExplicitExit the application is only closes if Exit is called. The default is OnLastWindowClose -
Focus
Manager Gets the application's focus manager. -
Input
Manager Gets the application's input manager. -
Is
Exiting Gets or sets a value indicating whether this instance is existing. -
Main
Window Gets or sets the main window of the application. - Resources Gets the application's global resource dictionary.
- Styles sealed Gets the application's global styles.
- Windows Gets the open windows of the application.
Events
-
On
Exit sealed Sent when the application is exiting. -
Resources
Changed sealed