CommunityToolkit / Labs-Windows

A safe space to collaborate and engineer solutions from the prototyping stage all the way through polished finalized component for the Windows Community Toolkit.
Other
323 stars 44 forks source link

Fix TitleBar Sample mucking up App's TitleBar #556

Closed michael-hawker closed 2 months ago

michael-hawker commented 3 months ago

Add internal check for TitleBar code so that it only resets the App's TitleBar if it was the initializer of the setup originally

Before this change, if you opened the TitleBar sample the App's TitleBar customizations would be reset. After this change, that no longer occurs.

Needs to be checked with WASDK as well as that the default behavior is uneffected.

Arlodotexe commented 2 months ago

Tested on WinAppSDK, all is well. Merging.