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.0 KiB
39 lines
1.0 KiB
using System;
|
|
using System.Linq;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Logging.Serilog;
|
|
using Avalonia.Platform;
|
|
using Avalonia.ReactiveUI;
|
|
using Serilog;
|
|
|
|
namespace ControlCatalog
|
|
{
|
|
internal class Program
|
|
{
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
// TODO: Make this work with GTK/Skia/Cairo depending on command-line args
|
|
// again.
|
|
BuildAvaloniaApp().Start<MainWindow>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is needed for IDE previewer infrastructure
|
|
/// </summary>
|
|
public static AppBuilder BuildAvaloniaApp()
|
|
=> AppBuilder.Configure<App>()
|
|
.LogToDebug()
|
|
.UsePlatformDetect()
|
|
.UseReactiveUI()
|
|
.UseDataGrid();
|
|
|
|
private static void ConfigureAssetAssembly(AppBuilder builder)
|
|
{
|
|
AvaloniaLocator.CurrentMutable
|
|
.GetService<IAssetLoader>()
|
|
.SetDefaultAssembly(typeof(App).Assembly);
|
|
}
|
|
}
|
|
}
|
|
|