[英]Can we customize CommandBar in UWP
我有一個UWP應用。 那里,我有一個CommandBar
,其中有一些AppBarButton
。 現在,我需要在同一命令欄中添加一些自定義單選按鈕,這些單選按鈕將被分組在一起,並精確顯示在命令欄的中間(默認行為不是像右對齊那樣)。
有沒有一種方法可以使用CommandBar
來實現?
是的你可以。 看官方樣品 。 在示例中,您可以找到許多組合,以及如何在UWP Application中使用應用欄
更新:
<Page.BottomAppBar>
<CommandBar>
<CommandBar.Content>
<Grid>
<RadioButton />
...
ps不要忘了HorizontalAlignment
和HorizontalContentAlignment
屬性
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.