-
Notifications
You must be signed in to change notification settings - Fork 771
Open
Labels
area-TitleBarIssues related to custom window title bars.Issues related to custom window title bars.bugSomething isn't workingSomething isn't workingteam-ControlsIssue for the Controls teamIssue for the Controls team
Description
Describe the bug
When you set the TitleBar back button visible through C# (not XAML) the first time, it allows you to drag the window by the back button and removes the back button animation.
Steps to reproduce the bug
- Create a titlebar control in XAML with the back button
IsBackButtonVisible
false - In the
.xaml.cs
file, set theIsBackButtonVisible
to true - Observe that you can drag the window by the back button and the animation is removed
Minimum reproduction:
https://github.com/RyanLua/TitlebarTest/tree/main/TitlebarTest
Expected behavior
Setting the back button in the titlebar control should retain the same behaviors as when setting it through XAML.
Screenshots
20250213-2248-11.1859949.mp4
NuGet package version
WinUI 3 - Windows App SDK 1.7 Preview 1: 1.7.250208002-preview1
Windows version
Windows 11 (24H2): Build 26100
Additional context
If you set the back button invisible and set it visible it again, it works like normal as expected. The first time you make the back button visible is when it is in this bugged state.
ghost1372
Metadata
Metadata
Assignees
Labels
area-TitleBarIssues related to custom window title bars.Issues related to custom window title bars.bugSomething isn't workingSomething isn't workingteam-ControlsIssue for the Controls teamIssue for the Controls team
Type
Projects
Status
Ready