Text Property
Collapse the table of content
Expand the table of content

ApplicationBarMenuItem.Text Property

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

Gets or sets the string that appears as the menu item.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property Text As String
<object Text="string" .../>

Property Value

Type: System.String
The string that appears as the menu item.

Implements

IApplicationBarMenuItem.Text

ExceptionCondition
ArgumentNullException

The value was set to null while the menu item belongs to an Application Bar.

ArgumentOutOfRangeException

The length exceeds the maximum allowable length.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft