挖矿网站开发,wordpress 性能,wordpress红包,专业的企业宣传片制作上一篇为大家介绍了AppBar 的相关内容#xff0c;本篇继续介绍CommandBar 的使用方法。与AppBar 相比而言#xff0c;CommandBar 在开发使用方面较为单一#xff0c;在按键布局上分为主控区#xff08;Primary Commands#xff09;与辅控区#xff08;Secondary Commands…上一篇为大家介绍了AppBar 的相关内容本篇继续介绍CommandBar 的使用方法。与AppBar 相比而言CommandBar 在开发使用方面较为单一在按键布局上分为主控区Primary Commands与辅控区Secondary Commands默认情况下主控区显示在菜单右侧辅控区在左侧。 如果应用菜单栏中只包含AppBarButton、AppBarToggleButton、AppBarSeparator 这几个控件且没有特殊布局格式要求及可以使用CommandBar 控件。当应用尺寸变化时CommandBar 也会随之调整尺寸。 Page.BottomAppBarCommandBarAppBarButton x:UidCamera IconCamera LabelCamera/AppBarToggleButton x:UidSuffle IconShuffle LabelShuffle/AppBarToggleButton x:UidAccount IconAccount LabelAccount/AppBarButton x:UidLike IconLike LabelLike/AppBarButton x:UidDislike IconDislike LabelDislike/AppBarSeparator/AppBarButton x:UidAdd IconAdd LabelAdd/AppBarToggleButton x:UidRemove IconRemove LabelRemove/AppBarButton x:UidDelete IconDelete LabelDelete//CommandBar
/Page.BottomAppBar 如上面代码默认所有控件都是分配在主控区及菜单栏右侧将Add、Remove、Delete 按键放入辅控区是什么样子呢如下 Page.BottomAppBarCommandBarAppBarButton x:UidCamera IconCamera LabelCamera/AppBarToggleButton x:UidSuffle IconShuffle LabelShuffle/AppBarToggleButton x:UidAccount IconAccount LabelAccount/AppBarButton x:UidLike IconLike LabelLike/AppBarButton x:UidDislike IconDislike LabelDislike/AppBarSeparator/CommandBar.SecondaryCommandsAppBarButton x:UidAdd IconAdd LabelAdd/AppBarToggleButton x:UidRemove IconRemove LabelRemove/AppBarButton x:UidDelete IconDelete LabelDelete//CommandBar.SecondaryCommands/CommandBar
/Page.BottomAppBar 如上图所示写入SecondaryCommands 的按键被分配到了菜单栏左侧。关于CommandBar 介绍就到这里大家可以动手操练一下。