IApplicationBar.MenuItems Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the list of the menu items that appear on the Application Bar.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

ReadOnly Property MenuItems As IList
IList MenuItems { get; }

Property Value

Type: System.Collections..::.IList
The list of menu items.

Remarks

In addition to the icon buttons, you can add one or more text-based menu items. These items are displayed in a list that slides up from underneath the icon buttons when the user clicks the ellipsis. The menu items are used for application actions that are less frequently used, or for actions that are difficult to convey with only an icon. For more information, see App bar for Windows Phone.

This collection is a generic list, but applications can add only ApplicationBarMenuItem objects to it.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

IApplicationBar Interface

Microsoft.Phone.Shell Namespace