mirror of
https://gitee.com/csharpui/CPF.git
synced 2026-04-17 02:58:04 +08:00
razor支持
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user