Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CommandBarFlyout.PrimaryCommands Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the collection of primary command elements for the CommandBarFlyout.

public:
 property IObservableVector<ICommandBarElement ^> ^ PrimaryCommands { IObservableVector<ICommandBarElement ^> ^ get(); };
IObservableVector<ICommandBarElement> PrimaryCommands();
public IObservableVector<ICommandBarElement> PrimaryCommands { get; }
var iObservableVector = commandBarFlyout.primaryCommands;
Public ReadOnly Property PrimaryCommands As IObservableVector(Of ICommandBarElement)
<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

See also


Feedback

Was this page helpful?