MenuFlyout.Items property

Applies to Windows and Windows Phone

Gets the collection used to generate the content of the menu.

Syntax


public IList<MenuFlyoutItemBase> Items { get; }


<MenuFlyout>
  oneOrMoreItems
</MenuFlyout>

XAML Values

oneOrMoreItems

Sets of MenuFlyoutItem elements. Can also include MenuFlyoutSeparator elements between groups of items, or ToggleMenuFlyoutItem elements.

Property value

Type: IVector<MenuFlyoutItemBase> [C++] | System.Collections.Generic.IList<MenuFlyoutItemBase> [.NET]

The collection that is used to generate the content of the menu, if it exists; otherwise, null. The default is an empty collection.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

MenuFlyout
MenuFlyoutItem
Quickstart: Adding a MenuFlyout

 

 

Show:
© 2014 Microsoft