Titlebar tweaks

This commit is contained in:
Laute 2021-11-14 14:26:22 +01:00
parent c49d41d6a8
commit 9d6bb2fc43
2 changed files with 1 additions and 2 deletions

View file

@ -68,8 +68,6 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
m_window = new MainWindow();
m_window.ExtendsContentIntoTitleBar = true;
m_window.Title = "PowerToys Settings";
m_window.Activate();

View file

@ -17,6 +17,7 @@ namespace Microsoft.PowerToys.Settings.UI.WinUI3
public MainWindow()
{
this.InitializeComponent();
this.ExtendsContentIntoTitleBar = true;
this.SetTitleBar(CustomTitleBar); // This should work according to docs, but it doesn't.... So disabling for now together with ExtendsContentIntoTitleBar
// send IPC Message