Open zhuxb711 opened 6 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Hi @zhuxb711,
Thanks for reporting this issue!
AppBarElementContainer is intended to support controls that can't normally go in a CommandBarFlyout. You shouldn't need to put an AppBarButton in an AppBarElementContainer. Is there a specific reason why you need to do that?
@llongley For example, I would like to layout the AppBarButton with other UIElements, not only the AppBarButton itself. AppBarElementContainer supports for the other UIElements but should also supports for the AppBarButton itself, the developer of WinUI should not assume that no AppBarButton within the AppBarElementContainer
Describe the bug
AppBarButton within AppBarElementContainer in CommandBarFlyout.PrimaryCommands behave incorrectly as the screenshot below.
Steps to reproduce the bug
Example:
Expected behavior
Should be the same as Windows App SDK 1.4.X
Screenshots
With Label:![image](https://github.com/microsoft/microsoft-ui-xaml/assets/42038175/b2b05880-cdb0-4838-92c1-354c14dbe8ae)
Without Label:![image](https://github.com/microsoft/microsoft-ui-xaml/assets/42038175/c68da22a-d214-4258-b355-3ee97a46bae4)
NuGet package version
WinUI 3 - Windows App SDK 1.5.0: 1.5.240227000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response