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)

public Window? MainWindow { get; set; }

Property Value

Window
The main window.

Implements

IClassicDesktopStyleApplicationLifetime.MainWindow

See Also

Reference

ClassicDesktopStyleApplicationLifetime Class
Avalonia.Controls.ApplicationLifetimes Namespace