Merge branch 'stefan/settings_to_winui3' of github.com:microsoft/PowerToys into stefan/settings_to_winui3

This commit is contained in:
Stefan Markovic 2021-11-19 11:01:31 +01:00
commit a466bb3c14
2 changed files with 1 additions and 2 deletions

View file

@ -66,8 +66,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

@ -19,6 +19,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