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.
IsCaseAutoCorrected
Indicates whether characters entered will have their case auto-corrected to match the defined mask.
public bool IsCaseAutoCorrected { get; set; }
Property Value
- bool:
trueif characters entered will have their case auto-corrected to match the defined mask; otherwise,false. The default value isfalse.
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:
trueif the mask is case sensitive; otherwise,false. The default value isfalse.
Remarks
When the IsCaseAutoCorrected property is set to true, this property is ignored.
Mask
THe text that designates the input mask.
MaskKind
THe kind of input mask.
PredefinedValueTemplateKey
The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.
PromptChar
The character used to indicate required input.
PromptVisibility
THe visibility of mask prompts.
public MaskPromptVisibility PromptVisibility { get; set; }
Property Value
- MaskPromptVisibility:
The default value is FocusedOnly.
Inherited Members
- PropertyEditorBase.CreateValueTemplate()
- PropertyEditorBase.ValueTemplate
- PropertyEditor.GetIsReadOnly(IPropertyModel)
- PropertyEditor.NameTemplate
- PropertyEditor.NameTemplateKey
- PropertyEditor.NameTemplateSelector
- PropertyEditor.ObjectType
- PropertyEditor.PropertyName
- PropertyEditor.PropertyType
- PropertyEditor.ValueTemplateKey
- PropertyEditor.ValueTemplateKind
- PropertyEditor.ValueTemplateSelector
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()