Open nickrandolph opened 1 year ago
Place Button and TextBlock adjacent to each other with TextBlock using BodySmall style.
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Stretch"> <Button VerticalAlignment="Center">Click Me</Button> <TextBlock Text="Click Me" VerticalAlignment="Center" Style="{StaticResource BodySmall}"/> <Button VerticalAlignment="Center" Style="{StaticResource FilledTonalButtonStyle}">Click Me</Button> </StackPanel>
Text in Buttons and TextBlock should be centre aligned. This is the case for the above code snippet without the BodySmall style
Nuget Package: Uno.Toolkit.WinUI.Material Package Version(s): 2.5.0-dev.35
Affected platform(s): (only tested on WinUI)
cc @NVLudwig this may be related to the text alignment issue we are seeing the Customize button on Windows
Another example, this time using DisplayLarge as the style for the TextBlock
Current behavior
Place Button and TextBlock adjacent to each other with TextBlock using BodySmall style.
Expected behavior
Text in Buttons and TextBlock should be centre aligned. This is the case for the above code snippet without the BodySmall style
Nuget Package: Uno.Toolkit.WinUI.Material Package Version(s): 2.5.0-dev.35
Affected platform(s): (only tested on WinUI)