Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.82 KB

commandbarflyout_secondarycommands.md

File metadata and controls

48 lines (31 loc) · 1.82 KB
-api-id -api-type ms.custom
P:Windows.UI.Xaml.Controls.CommandBarFlyout.SecondaryCommands
winrt property
RS5

Windows.UI.Xaml.Controls.CommandBarFlyout.SecondaryCommands

-description

Gets the collection of secondary command elements for the CommandBarFlyout.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.CommandBarFlyout.SecondaryCommands (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-xaml-syntax

<CommandBarFlyout>
    <CommandBarFlyout.SecondaryCommands>
       commandBarElements
    </CommandBarFlyout.SecondaryCommands>
</CommandBarFlyout>

-xaml-values

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

-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.

-examples

-see-also

PrimaryCommands