-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.CommandBar.PrimaryCommands |
winrt property |
Gets the collection of primary command elements for the CommandBar.
<CommandBar>
<CommandBar.PrimaryCommands>
commandBarElements
</CommandBar.PrimaryCommands>
</CommandBar>
- commandBarElements
- commandBarElementsOne or more object elements for classes that implement ICommandBarElement. These are typically AppBarButton, AppBarToggleButton or AppBarSeparator elements.
The PrimaryCommands collection can contain only AppBarButton, AppBarToggleButton, or AppBarSeparator command elements. The primary commands are shown on the right side of the CommandBar, to the left of the More button (...) when the FlowDirection is LeftToRight. The layout is reversed when the FlowDirection is RightToLeft.