CommandBar.SecondaryCommands Property

Definition

Gets the collection of secondary command elements for the CommandBar.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.CommandBar.SecondaryCommands.

public:
 property IObservableVector<ICommandBarElement ^> ^ SecondaryCommands { IObservableVector<ICommandBarElement ^> ^ get(); };
IObservableVector<ICommandBarElement> SecondaryCommands();
public IObservableVector<ICommandBarElement> SecondaryCommands { get; }
var iObservableVector = commandBar.secondaryCommands;
Public ReadOnly Property SecondaryCommands As IObservableVector(Of ICommandBarElement)
<CommandBar>
    <CommandBar.SecondaryCommands>
       commandBarElements
    </CommandBar.SecondaryCommands>
</CommandBar>

Property Value

IObservableVector<ICommandBarElement>

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

Remarks

The SecondaryCommands collection can contain only AppBarButton, AppBarToggleButton, or AppBarSeparator command elements. The secondary commands are shown in the overflow menu when the CommandBar is open.

Applies to

See also