MainWindow Property
Gets or sets the main window of the application.
Definition
Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
Window? MainWindow { get; set; }
Property MainWindow As Window
Get
Set
abstract MainWindow : Window with get, set
Property Value
Window
The main window.
See Also
Reference
IClassicDesktopStyleApplicationLifetime Interface
Avalonia.Controls.ApplicationLifetimes Namespace