Button.Content
does not use HorizontalContentAlignment
properly
#7620
Labels
difficulty/challenging 🤯
Categorizes an issue for which the difficulty level is reachable with internals understanding
kind/bug
Something isn't working
low-hanging-🍒
Categorizes an issue that might be a quick win with meaningful positive impact.
project/layout 🧱
Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Current behavior
Certain Button Content is not centered. This is even specified in XAML with
HorizontalContentAlignment
just to be sure but the default is alsoCenter
.This appears to be related to the StackPanel which is known to have many issues.Note: StackPanel needs a port from upstream WinUI ASAP like Grid.
Expected behavior
All content should be centered by default.
How to reproduce it (as minimally and precisely as possible)
Repro App:
TestApp.zip
Workaround
Perhaps try a different container/panel such as Grid
Works on UWP/WinUI
Yes
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
NuGet package version(s)
4.0.9
Affected platforms
Android
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: