Class
RadMaskedTextInput

MaskedInput control for entering string values like phone numbers, IBAN, post codes, product codes etc. User can limit the user input or set literal / escaped symbols in the input via the Mask property. When Mask is empty string, the control behaves like a normal TextBox (free form text input).

Definition

Namespace:Telerik.UI.Xaml.Controls.Input

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadMaskedTextInput : RadMaskedInputBase

Inheritance: objectRadControlRadMaskedInputBaseRadMaskedTextInput

Inherited Members RadMaskedInputBase.TextPropertyRadMaskedInputBase.MaskPropertyRadMaskedInputBase.AllowPromptAsInputPropertyRadMaskedInputBase.AllowNullValuePropertyRadMaskedInputBase.PromptCharPropertyRadMaskedInputBase.CulturePropertyRadMaskedInputBase.EmptyTextPropertyRadMaskedInputBase.IsReadOnlyPropertyRadMaskedInputBase.HeaderTemplatePropertyRadMaskedInputBase.HeaderPropertyRadMaskedInputBase.DescriptionPropertyRadMaskedInputBase.OnApplyTemplate()RadMaskedInputBase.OnGotFocus(RoutedEventArgs)RadMaskedInputBase.OnLostFocus(RoutedEventArgs)RadMaskedInputBase.OnPointerExited(PointerRoutedEventArgs)RadMaskedInputBase.OnPointerEntered(PointerRoutedEventArgs)RadMaskedInputBase.ChangeVisualState()RadMaskedInputBase.ChangeVisualState(bool)RadMaskedInputBase.OnValueChanging(ValueChangingEventArgs)RadMaskedInputBase.OnPreviewKeyDown(KeyRoutedEventArgs)RadMaskedInputBase.OnValueChanged(EventArgs)RadMaskedInputBase.TextRadMaskedInputBase.MaskRadMaskedInputBase.AllowPromptAsInputRadMaskedInputBase.AllowNullValueRadMaskedInputBase.EmptyTextRadMaskedInputBase.IsReadOnlyRadMaskedInputBase.HeaderTemplateRadMaskedInputBase.HeaderRadMaskedInputBase.DescriptionRadMaskedInputBase.ValueChangedRadMaskedInputBase.ValueChangingRadMaskedInputBase.ContextMenuOpeningRadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.OnCreateAutomationPeer()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.OnTemplateApplied()RadControl.ApplyTemplateCore()RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RadMaskedTextInput()

Initializes a new instance of the RadMaskedTextInput class.

Declaration

cs-api-definition
public RadMaskedTextInput()

Fields

AllowOnlyCompletedValuesProperty

Identifies the AllowOnlyCompletedValues dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowOnlyCompletedValuesProperty

Field Value

DependencyProperty

IsMaskCompletedProperty

Identifies the IsMaskCompleted property key.

Declaration

cs-api-definition
public static readonly DependencyProperty IsMaskCompletedProperty

Field Value

DependencyProperty

RestrictToAsciiProperty

Identifies the RestrictToAscii dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RestrictToAsciiProperty

Field Value

DependencyProperty

ValueFormatProperty

Identifies the ValueFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ValueFormatProperty

Field Value

DependencyProperty

ValueProperty

Identifies the Value dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ValueProperty

Field Value

DependencyProperty

Properties

AllowOnlyCompletedValues

Gets or sets a value indicating whether only valid values are allowed. When this property is set to true, invalid values are not accepted. When this property is set to false invalid values are accepted (i.e. the Value property is set) and the ValueChanging and ValueChanged events are raised.

Declaration

cs-api-definition
public bool AllowOnlyCompletedValues { get; set; }

Property Value

bool

IsMaskCompleted

Gets a value indicating whether all required inputs have been entered into the formatted string.

Declaration

cs-api-definition
public bool IsMaskCompleted { get; }

Property Value

bool

RestrictToAscii

Gets or sets a value indicating whether input should be restricted to ascii characters.

Declaration

cs-api-definition
public bool RestrictToAscii { get; set; }

Property Value

bool

Value

Gets or sets the text value of the control. The value may be null if the AllowNullValue is true.

Declaration

cs-api-definition
public string Value { get; set; }

Property Value

string

ValueFormat

The ValueFormat allows you to control whether the value can also hold literals and prompt characters.

Declaration

cs-api-definition
public ValueFormat ValueFormat { get; set; }

Property Value

ValueFormat