using Avalonia.Controls; namespace AvaloniaApplication4.Views { public partial class MainWindow : Window { public static MainWindow Instance { get; private set; } public MainWindow() { Instance = this; InitializeComponent(); } } }