You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Add the following XAML to an UWP application:
<CommandBarVerticalContentAlignment="Center"DefaultLabelPosition="Right"OverflowButtonVisibility="Auto">
<CommandBar.Content>
<ButtonContent="Do something"Style="{StaticResource AccentButtonStyle}" />
</CommandBar.Content>
<AppBarButtonIcon="Accept"Label="Action 1 with a long name" />
<AppBarButtonIcon="Remove"Label="Action 2 with a long name" />
</CommandBar>
From Windows' settings, set text scaling to 200%
Run the application
Ensure the app window is large enough to display all the buttons.
The "see more" button is visible whereas there is nothing in the overflow menu
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.
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
From Windows' settings, set text scaling to 200%
Run the application
Ensure the app window is large enough to display all the buttons.
The "see more" button is visible whereas there is nothing in the overflow menu
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
The text was updated successfully, but these errors were encountered: