unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.03k stars 733 forks source link

CommandBar with AppBarButtons is not working properly #18712

Open Suriman opened 2 weeks ago

Suriman commented 2 weeks ago

Current behavior

Using the CommandBar control with some AppBarButtons inside:

Expected behavior

How to reproduce it (as minimally and precisely as possible)

Open the attached project, compile and run it in each platform. Change the size of the window to force the CommandBar to show the "More" button and click on it.

18172-UnoCommandBar.zip

Workaround

No workaround.

Works on UWP/WinUI

No

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

Affected platforms

WebAssembly, Skia (WPF), Windows (WinAppSDK)

IDE

Visual Studio 2022

IDE version

17.11.5

Relevant plugins

No response

Anything else we need to know?

The issue affects two controls, the CommandBar and the AppBarButton, since it has been seen that the behavior of displaying the label by the CommandBar depends on the AppBarButton having the Label property and as seen in Uno.Themes it does not seem to matter. It also seems to affect both the behavior and the Theme of the controls.

jeromelaban commented 2 weeks ago

Thanks for the report. Is this a new issue or did it work in previous versions of Uno?

ADD-Eugenio-Lopez commented 2 weeks ago

We work with this control in the two last versions 5.4.38 and 5.5.37. We haven't tried to change the style previously.