|
@@ -31,9 +31,6 @@ namespace Avalonia.Controls
|
|
|
public static readonly StyledProperty<string?> MaskProperty =
|
|
|
AvaloniaProperty.Register<MaskedTextBox, string?>(nameof(Mask), string.Empty);
|
|
|
|
|
|
- public static new readonly StyledProperty<char> PasswordCharProperty =
|
|
|
- AvaloniaProperty.Register<MaskedTextBox, char>(nameof(PasswordChar), '\0');
|
|
|
-
|
|
|
public static readonly StyledProperty<char> PromptCharProperty =
|
|
|
AvaloniaProperty.Register<MaskedTextBox, char>(nameof(PromptChar), '_');
|
|
|
|
|
@@ -51,6 +48,12 @@ namespace Avalonia.Controls
|
|
|
|
|
|
private bool _resetOnSpace = true;
|
|
|
|
|
|
+ static MaskedTextBox()
|
|
|
+ {
|
|
|
+ PasswordCharProperty
|
|
|
+ .OverrideDefaultValue<MaskedTextBox>('\0');
|
|
|
+ }
|
|
|
+
|
|
|
public MaskedTextBox() { }
|
|
|
|
|
|
/// <summary>
|