// // Program.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 System; using Avalonia; using Avalonia.Media; using Avalonia.ReactiveUI; using Projektanker.Icons.Avalonia; using Projektanker.Icons.Avalonia.MaterialDesign; namespace PacketLogger; /// /// Application entrypoint class. /// public class Program { /// /// Application entrypoint. /// /// The CLI arguments. [STAThread] public static void Main(string[] args) => BuildAvaloniaApp() .StartWithClassicDesktopLifetime(args); /// /// Build the Avalonia app. /// /// The app builder. public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure() .UsePlatformDetect() .LogToTrace() .UseReactiveUI() .WithIcons(c => c.Register()) .With(new FontManagerOptions() { DefaultFamilyName = "Arial" }); }