Skip to main content

MainWindow Property

Gets or sets the main window of the application.

Definition​

Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

Window? MainWindow { get; set; }
View Source

Property Value​

Window
The main window.

See Also​

Reference​

IClassicDesktopStyleApplicationLifetime Interface
Avalonia.Controls.ApplicationLifetimes Namespace