mirror of
https://github.com/amwx/FluentAvalonia.git
synced 2026-10-27 03:13:28 +08:00
25 lines
823 B
C#
25 lines
823 B
C#
using Avalonia;
|
|
using FluentAvalonia.UI.Windowing;
|
|
|
|
namespace FluentAvaloniaSamples;
|
|
|
|
class Program
|
|
{
|
|
// Initialization code. Don't use any Avalonia, third-party APIs or any
|
|
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
|
|
// yet and stuff might break.
|
|
public static void Main(string[] args) => BuildAvaloniaApp()
|
|
.StartWithClassicDesktopLifetime(args);
|
|
|
|
// Avalonia configuration, don't remove; also used by visual designer.
|
|
public static AppBuilder BuildAvaloniaApp()
|
|
=> AppBuilder.Configure<App>()
|
|
.UsePlatformDetect()
|
|
.LogToTrace()
|
|
.With(new Win32PlatformOptions()
|
|
{
|
|
UseWindowsUIComposition = true,
|
|
CompositionBackdropCornerRadius = 8f
|
|
});
|
|
}
|