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#
public Window? MainWindow { get; set; }
Public Property MainWindow As Window
Get
Set
abstract MainWindow : Window with get, set
override MainWindow : Window with get, set
Property Value
Window
The main window.
Implements
IClassicDesktopStyleApplicationLifetime.MainWindowSee Also
Reference
ClassicDesktopStyleApplicationLifetime Class
Avalonia.Controls.ApplicationLifetimes Namespace