精简manifest引用,自定义titlebar

This commit is contained in:
Steven Hobs
2026-02-13 00:13:27 +08:00
parent b03db7ac51
commit 5904b03264
7 changed files with 22 additions and 13 deletions

View File

@@ -5,10 +5,9 @@ public sealed partial class MainWindow : WindowEx
{
public MainWindow()
{
this.InitializeComponent();
this.SetIcon("Assets/Logo/app.ico");
Title = "Pure";
Width = 600;
Height = 480;
InitializeComponent();
this.SetIcon("Assets/Logo/app_64.ico");
ExtendsContentIntoTitleBar = true;
SetTitleBar(AppTitleBar);
}
}