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.
40 lines
1.1 KiB
40 lines
1.1 KiB
using System;
|
|
using Perspex;
|
|
using Perspex.Controls;
|
|
using Perspex.Diagnostics;
|
|
using Perspex.Themes.Default;
|
|
using Serilog;
|
|
using Serilog.Filters;
|
|
|
|
namespace BindingTest
|
|
{
|
|
public class App : Application
|
|
{
|
|
public App()
|
|
{
|
|
RegisterServices();
|
|
InitializeSubsystems((int)Environment.OSVersion.Platform);
|
|
Styles = new DefaultTheme();
|
|
|
|
Log.Logger = new LoggerConfiguration()
|
|
.Filter.ByIncludingOnly(Matching.WithProperty("Area", "Property"))
|
|
.Filter.ByIncludingOnly(Matching.WithProperty("Property", "Text"))
|
|
.MinimumLevel.Verbose()
|
|
.WriteTo.Trace(outputTemplate: "[{Id:X8}] [{SourceContext}] {Message}")
|
|
.CreateLogger();
|
|
}
|
|
|
|
public static void AttachDevTools(Window window)
|
|
{
|
|
DevTools.Attach(window);
|
|
}
|
|
|
|
private static void Main()
|
|
{
|
|
var app = new App();
|
|
var window = new MainWindow();
|
|
window.Show();
|
|
app.Run(window);
|
|
}
|
|
}
|
|
}
|
|
|