[]
        
(Showing Draft Content)

C1.WinUI.Input.C1MaskedTextBox

C1MaskedTextBox Class

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

Inheritance
C1TextBoxBase
C1MaskedTextBox
Namespace: C1.WinUI.Input
Assembly: C1.WinUI.Input.dll
Syntax
public class C1MaskedTextBox : C1TextBox, INotifyPropertyChanged, IDisposable

Constructors

Name Description
C1MaskedTextBox()

Initializes a new instance of the C1MaskedTextBox class.

Fields

Name Description
AutoConvertProperty

Identifies the AutoConvert dependency property.

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
AutoConvert

Gets or sets whether to automatically convert the entered characters according to the input mask.

Culture

Gets or sets the culture used to display the value in the C1.WPF.C1MaskedTextBox.

IsValid

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

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
Dispose(bool)
OnApplyTemplate()
OnMaskedTextChanged(MaskedTextChangedEventArgs)

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

UpdateValue()

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.

ValueChanged

Occurs when Value changed.