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.
Syntax
Public Property Text As String
public string Text { get; set; }
<object Text="string" .../>
Property Value
Type: System..::.String
The string that appears as the menu item.
Implements
IApplicationBarMenuItem..::.Text
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The value was set to null while the menu item belongs to an Application Bar. |
ArgumentOutOfRangeException | The length exceeds the maximum allowable length. |
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone
See Also
Reference
Microsoft.Phone.Shell Namespace