私はUWPアプリケーションで作業しています。 Appbarボタンを使ってアクションのアイコンボタンを表示しています。 問題は、ラベルがアイコンの横に自動的に配置され、ラベルの一部がアイコンの下に置かれることがあります。ラベルの位置を固定する方法はありますか?以下 は、問題をより明確に理解するための画像です:Appbarボタンのラベルの位置は自動的にUWP
以下
見えるようにしたい作るのいずれかの方法がありますそれら(アイコンとそれぞれのラベル)が垂直に整列したままであることを確認してください。以下は私のコードです:AppBarButton
がCommandBar
の内部で使用される場合
<AppBarButton Label="Share" Grid.Column="2" HorizontalAlignment="Center">
<AppBarButton.Icon>
<PathIcon HorizontalAlignment="Center" Data="ShareIconPathDataHere"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="Add to" Grid.Column="3" HorizontalAlignment="Center">
<AppBarButton.Icon>
<PathIcon HorizontalAlignment="Center" Data="AddToIconPathDataHere"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="Report" Grid.Column="4" HorizontalAlignment="Center">
<AppBarButton.Icon>
<PathIcon HorizontalAlignment="Center" Data="ReportIconPathDataHere"/>
</AppBarButton.Icon>
</AppBarButton>
コマンドバーを使用して 'AppBarButton'を配置してみませんか? –
@VijayNirmalいいえ、私はアイコンを置いている場所は適切ではないコマンドバーです –
「Horizontal」はいつ取得しますか? – Peter