是否有比默认方法更好的方法来处理具有长文本的CommandBar项。
制作太长的内容并不是更好的做法
CommandBar
,如果你确实想制作长篇内容,你可以设置
DefaultLabelPosition
这是对的。
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<CommandBar Grid.Row="0" DefaultLabelPosition="Right">
<CommandBar.Content>
<Button
Style="{StaticResource NavigationBackButtonNormalStyle}"
Name="BackButton"
VerticalAlignment="Top"
Click="Back_Click"/>
</CommandBar.Content>
<AppBarButton Icon="Mail" Label="Information sur le produit" />
<AppBarButton Icon="Mail" Label="Avis sur les produits"/>
<AppBarButton Icon="Mail" Label="Informations de contact"/>
</CommandBar>
<Frame Name="MyFrame" Grid.Row="1"/>
</Grid>