razor支持

This commit is contained in:
小红帽
2024-01-09 16:57:27 +08:00
parent 7bc08b401c
commit ac3faaa8ed
63 changed files with 2993 additions and 151 deletions

View File

@@ -18,6 +18,7 @@ namespace CpfRazorSample
//, (OperatingSystemType.OSX, new CPF.Mac.MacPlatform(), new SkiaDrawingFactory())//如果需要支持Mac才需要
//, (OperatingSystemType.Linux, new CPF.Linux.LinuxPlatform(), new SkiaDrawingFactory())//如果需要支持Linux才需要
);
//Create();
var host = Host.CreateDefaultBuilder()
.ConfigureServices((hostContext, services) =>
@@ -28,10 +29,10 @@ namespace CpfRazorSample
.Build();
var window = new CPF.Controls.Window { Width = 500, Height = 500, Background = null };
window.LoadStyleFile("res://CpfRazorSample/Stylesheet1.css");
host.AddComponent<Test>(window);
Application.Run(window);
}
static void Create()