microsoft / microsoft/microsoft-ui-xaml
CommandBar is always displaying the "see more" button when text scaling is on
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
### Describe the bug
When text scaling is on, the `CommandBar` control is always displaying its "see more" button whereas there is no content in the overflow menu.
### Steps to reproduce the bug
1. Add the following XAML to an UWP application:
```xml
```
2. From Windows' settings, set text scaling to 200%
3. Run the application
4. Ensure the app window is large enough to display all the buttons.
5. The "see more" button is visible whereas there is nothing in the overflow menu

6. Clicking on the button increases the command bar's height.

### Expected behavior
The `CommandBar` control should keep the same behavior as when text scaling is disabled.
The "see more" button should only be displayed when there are items in overflow or secondary commands.
The same command bar with text scaling off:

### Screenshots
_No response_
### NuGet package version
WinUI 2 - Microsoft.UI.Xaml 2.8.2
### Windows version
Windows 11 (22H2): Build 22621
### Additional context
Could be related to #9299
Contributor guide
Assessment
This issue has not been assessed yet.