// // App.axaml.cs // // Copyright (c) František Boháček. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Avalonia; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Markup.Xaml; using PacketLogger.ViewModels; using PacketLogger.Views; using PropertyChanged; namespace PacketLogger; /// /// The application. /// [DoNotNotify] public partial class App : Application { /// public override void Initialize() { AvaloniaXamlLoader.Load(this); } /// public override void OnFrameworkInitializationCompleted() { if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) { desktop.MainWindow = new MainWindow { DataContext = new MainWindowViewModel(), }; } base.OnFrameworkInitializationCompleted(); } }