PasswordBox.PasswordChar Property

Definition

Gets or sets the masking character for the PasswordBox.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.PasswordBox.PasswordChar.

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

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

Property Value

String

A masking character to echo when the user enters text into the PasswordBox. The default value is a bullet character (●).

Applies to