CommandBarFlyout.SecondaryCommands Property

Definition

Gets the collection of secondary command elements for the CommandBarFlyout.

C#
public IObservableVector<ICommandBarElement> SecondaryCommands { get; }
XAML
<CommandBarFlyout>
    <CommandBarFlyout.SecondaryCommands>
       commandBarElements
    </CommandBarFlyout.SecondaryCommands>
</CommandBarFlyout>

Property Value

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

Remarks

The SecondaryCommands collection can directly contain only AppBarButton, AppBarToggleButton, or AppBarSeparator command elements. Other elements must be wrapped in an AppBarElementContainer.

The secondary commands are shown in the menu portion of the flyout when the CommandBarFlyout is expanded.

Applies to

Produk Versi
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also