Windows Dev Center

CommandBar.SecondaryCommands property

Gets the collection of secondary command elements for the CommandBar.

Syntax


Public ReadOnly Property SecondaryCommands As IObservableVector(Of ICommandBarElement)


<CommandBar>
    <CommandBar.SecondaryCommands>
       commandBarElements
    </CommandBar.SecondaryCommands>
</CommandBar>

XAML Values

commandBarElements

One or more object elements for classes that implement ICommandBarElement. These are typically AppBarButton, AppBarToggleButton or AppBarSeparator elements.

Property value

Type: IObservableVector<ICommandBarElement>

The collection of secondary command elements for the CommandBar. The default is an empty collection.

Remarks

A CommandBar can contain only AppBarButton, AppBarToggleButton, or AppBarSeparator command elements. The secondary commands are shown on the right side of the CommandBar when the FlowDirection is LeftToRight, and on the left side when the FlowDirection is RightToLeft.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

CommandBar
PrimaryCommands

 

 

Show:
© 2015 Microsoft