microsoft / microsoft/microsoft-ui-xaml
TabView Affects the Behavior of the Title Bar
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
### Describe the bug
When the **AppWindow.TitleBar.ExtendsContentIntoTitleBar** property in **Window** is set to **true** and the **SetTitleBar()** method is called, a **TabView** with its **Visibility** property set to **Visibility.Collapsed** will affect the title bar, making it undraggable, but the minimize, maximize, and close buttons can still be clicked.
### Why is this important?
When the TabView is set to **Visibility.Collapsed** due to certain needs, it is suddenly discovered that the title bar becomes non-draggable, which negatively affects the user experience.
### Steps to reproduce the bug
In MainWindow.xaml
``
``
In MainWindow.xaml.cs
`AppWindow.TitleBar.ExtendsContentIntoTitleBar = true;`
`SetTitleBar(MainTitleBar);`
The TabView among them can be anywhere, as long as it is set to **Collapsed**.
### Actual behavior
The title bar cannot be dragged, only the minimize, maximize, and close buttons can be clicked, and the position of the toolbar at the top of the window can be seen at the very top.
### Expected behavior
Operating normally, the title bar can be dragged.
### Screenshots
### NuGet package version
Windows App SDK 2.0.1
### Windows version
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.