PasswordBox.PlaceholderText 属性

定义

获取或设置控件中显示的文本,直到用户操作或其他操作更改值为止。

public:
 property Platform::String ^ PlaceholderText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring PlaceholderText();

void PlaceholderText(winrt::hstring value);
public string PlaceholderText { get; set; }
var string = passwordBox.placeholderText;
passwordBox.placeholderText = string;
Public Property PlaceholderText As String
<PasswordBox PlaceholderText="placeholderString"/>

属性值

String

Platform::String

winrt::hstring

未输入任何值时控件中显示的文本。 默认值为空字符串("")。

适用于