我想调整我的单曲AppBarButton
向右CommandBar
in a Page.BottomBar
?
在设计上它展示了app bar button
在右侧,但在模拟器中,按钮始终位于中心?
有没有办法对齐AppBarButton
in a page bottom bar
?
Edit:
<Page.BottomAppBar>
<CommandBar HorizontalAlignment="Right" HorizontalContentAlignment="Right">
<CommandBar.PrimaryCommands>
<AppBarButton Margin="100,0,0,0" HorizontalAlignment="Right" HorizontalContentAlignment="Right" IsEnabled="True" Name="btnNext" Icon="Next" x:Uid="AppBarNext" Label="Next1"></AppBarButton>
</CommandBar.PrimaryCommands>
</CommandBar>
</Page.BottomAppBar>
您不能将命令栏中的按钮居中。话虽如此,如果您需要这种类型的控件,您只需切换到 AppBar 控件即可。相同的行为,只是更加灵活。代价是该控件不通用,并且不会在 Phone 中呈现。您需要为您的手机平台头显示一个 CommandBar。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)