[]
        
(Showing Draft Content)

C1.WPF.C1MaskedTextBox

C1MaskedTextBox Class

Represents a control that uses a mask to prevent users from entering invalid data.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
public class C1MaskedTextBox : C1TextBoxBase, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, INotifyPropertyChanged

Constructors

Name Description
C1MaskedTextBox()

Initializes a new instance of a C1MaskedTextBox.

Fields

Name Description
CultureProperty

Identifies the Culture dependency property.

MaskProperty

Identifies the Mask dependency property.

PromptCharProperty

Identifies the PromptChar dependency property.

ReplaceModeProperty

Identifies the ReplaceMode dependency property.

TextMaskFormatProperty

Identifies the TextMaskFormat dependency property.

ValueProperty

Identifies the Value dependency property.

Properties

Name Description
Culture

Sets the culture used to display the value in the C1MaskedTextBox.

IsValid

Gets a value that determines whether the control contains a valid entry.

IsWatermarked

Gets a value indicating whether this textbox is watermarked.

Mask

Gets or sets the input mask.

PromptChar

Gets or sets the character used to show spaces where user is supposed to type.

ReplaceMode

Gets or sets a value indicating whether new characters will be inserted or replace existing ones while you are typing.

TextMaskFormat

Gets or sets a value that determines whether literals and prompt characters are included in the Value property.

Value

Gets or sets the formatted content of the control as specified by the TextMaskFormat property.

Methods

Name Description
OnApplyTemplate()

Builds the visual tree for the C1.WPF.C1TextBoxBase control when a new template is applied.

OnMaskedTextChanged(MaskedTextChangedEventArgs)

Occurs when consistent content that conforms to the Mask changes in the text box.

UpdateValue()

For Silverlight version of the control, forces C1MaskedTextBox to update its Value and Text properties when the control is not loaded. Does nothing in WPF.

Events

Name Description
MaskedTextChanged

Occurs when consistent content that conforms to the Mask changes in the text box.

Extension Methods