CommandBarFlyout.PrimaryCommands Property

Definition

Gets the collection of primary command elements for the CommandBarFlyout.

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

Property Value

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

Remarks

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

The primary commands are shown in the command bar portion of the flyout.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also