ApplicationBarIconButton.Text Property

July 28, 2014

Gets or sets the label for the icon button.

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

public string Text { get; set; }
<object Text="string" .../>

Property Value

Type: System.String
The label for the icon button.

Implements

IApplicationBarMenuItem.Text

ExceptionCondition
InvalidOperationException

The property is null or empty when attempting to add a button to an Application Bar or the property is set to null or empty after the button has been added to an Application Bar.

ArgumentOutOfRangeException

The string value exceeds the maximum number of characters allowed.

The label appears when the user clicks the ellipsis to open or expand the Application Bar. The text is clipped when it exceeds the available space.

The maximum number of characters for the Text property is 255.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft