Hello,
Welcome to our Microsoft Q&A platform!
Did you mean that the label no longer wraps automatically when the Label is at the bottom of the AppBarButton
?
This is the default behavior of AppBarButton
and does not provide an external API to change this behavior. If you want to implement this requirement, you need to modify the style of AppBarButton
Try this code:
Due to forum reasons, XAML code cannot be posted for the time being, we are actively addressing this issue
The key modification is this TextBlock
. In the default style, its TextWrapping
property is Wrap
. Here we can modify it.
At the same time, in order to remind the user that the Label
is not displayed completely, we can set TextTrimming = "CharacterEllipsis"
so that an ellipsis will be displayed when the text overflows.
Usage
<AppBarButton Label="Test Button" Style="{StaticResource AppBarButtonNoWrapStyle}"/>
Thanks