TextBox.PlaceholderText Property

Definition

Gets or sets the text that is displayed in the control until the value is changed by a user action or some other operation.

C#
public string PlaceholderText { get; set; }
XAML
<TextBox PlaceholderText="placeholderString"/>

Property Value

String

The text that is displayed in the control when no value is entered. The default is an empty string ("").

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6