In This Article

MaskedStringPropertyEditor Class

Represents a PropertyEditor for editing a masked String value with a MaskedTextBox.

public class MaskedStringPropertyEditor : PropertyEditorBase
Inheritance:
object ObservableObjectBase PropertyEditor PropertyEditorBase object

Remarks

This property editor is not automatically installed by the BuiltinPropertyEditors since it requires a specific Mask to be set to the scenario in which it is used. Set a Mask and also the PropertyName (or also ObjectType and PropertyType properties as needed) of the property to target with this property editor.

Constructors

MaskedStringPropertyEditor()

Initializes an instance of the class.

public MaskedStringPropertyEditor()

Properties

BorderThickness

THe border thickness.

public Thickness BorderThickness { get; set; }

Property Value

Thickness:

The default value is 0.

IsCaseAutoCorrected

Indicates whether characters entered will have their case auto-corrected to match the defined mask.

public bool IsCaseAutoCorrected { get; set; }

Property Value

bool:

true if characters entered will have their case auto-corrected to match the defined mask; otherwise, false. The default value is false.

Remarks

When this property is set to true, then the IsCaseSensitive property is ignored.

IsCaseSensitive

Indicates whether the mask is case sensitive.

public bool IsCaseSensitive { get; set; }

Property Value

bool:

true if the mask is case sensitive; otherwise, false. The default value is false.

Remarks

When the IsCaseAutoCorrected property is set to true, this property is ignored.

Mask

THe text that designates the input mask.

public string? Mask { get; set; }

Property Value

string:

The default value is null.

MaskKind

THe kind of input mask.

public MaskKind MaskKind { get; set; }

Property Value

MaskKind:

The default value is Regex.

PredefinedValueTemplateKey

The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.

protected override object PredefinedValueTemplateKey { get; }

Property Value

object

PromptChar

The character used to indicate required input.

public char PromptChar { get; set; }

Property Value

char:

The default value is \u2022.

PromptVisibility

THe visibility of mask prompts.

public MaskPromptVisibility PromptVisibility { get; set; }

Property Value

MaskPromptVisibility:

The default value is FocusedOnly.

Inherited Members

Extension Methods