uno: MUX DropDownButton/SplitButton/ToggleSplitButton Don't Show Chevron Glyph

Current behavior

The Microsoft.UI.Xaml DropDownButton, SplitButton and ToggleSplitButton don’t show the down chevron glyph. ~It instead falls back to a font besides Segoe MDL2 Assets (the Uno Equivalent).~

image

I’m not sure where this issue happens as the code seems to be correct. This may be an issue with Resource lookup but then I wonder how any other controls work. Perhaps the glyph itself is missing from the Uno Font and we should change it to the ComboBox Unicode point.

https://github.com/unoplatform/uno/blob/e70c72425f5bc73cca71dee880e7a61d40b21e50/src/Uno.UI/UI/Xaml/Controls/DropDownButton/DropDownButton.xaml#L113-L115

Expected behavior

The chevron should be shown.

How to reproduce it (as minimally and precisely as possible) / Test App

See the following test application.

DropDownButtonTest.zip

Workaround

Works on UWP/WinUI

Yes

Environment

Nuget Package Version(s): 3.9.1
Visual Studio 2019 Version 16.11.1
Windows 10 Pro 21H1 19043.1165
Android Emulator: Pixel 2 Q 10.0 - API 29

Nuget Package:

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other:

Nuget Package Version(s): 3.9.1

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: )
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 28 (28 by maintainers)

Most upvoted comments

If you encounter this again, open an issue with the build errors, we can certainly enhance the build validations for the errors to be more explicit.

Thanks for pointing me to the style. Both DropDownButton and ComboBox are using the same Unicode point. ~Only DropDownBox is using a TextBlock instead of FontIcon.~ Why is ComboBox switching to a TextBlock only for Android? This is strange to me.

Reguardless, this proves it isnt a font issue.

I’m going to try a few other things but someone hopefully can confirm they see the same issue. This may be a strange case on my end.