csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
using System;
|
|
using System.Linq;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Platform;
|
|
using ControlCatalog.NetCore;
|
|
using ControlCatalog.Pages;
|
|
|
|
namespace ControlCatalog
|
|
{
|
|
internal class Program
|
|
{
|
|
[STAThread]
|
|
public static int Main(string[] args)
|
|
=> BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
|
|
|
|
/// <summary>
|
|
/// This method is needed for IDE previewer infrastructure
|
|
/// </summary>
|
|
public static AppBuilder BuildAvaloniaApp()
|
|
=> AppBuilder.Configure<App>()
|
|
.LogToTrace()
|
|
.AfterSetup(builder =>
|
|
{
|
|
builder.Instance!.AttachDevTools(new Avalonia.Diagnostics.DevToolsOptions()
|
|
{
|
|
StartupScreenIndex = 1,
|
|
});
|
|
|
|
EmbedSample.Implementation = new EmbedSampleWin();
|
|
})
|
|
.UsePlatformDetect();
|
|
|
|
private static void ConfigureAssetAssembly(AppBuilder builder)
|
|
{
|
|
AssetLoader.SetDefaultAssembly(typeof(App).Assembly);
|
|
}
|
|
}
|
|
}
|
|
|