ClassRadMaskedTextInput
Represents the RadMaskedTextInput control.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
[TelerikToolboxCategory("Input")]
[Themable]
public class RadMaskedTextInput : RadMaskedSectionBase
Inheritance: objectRadMaskedInputBaseRadMaskedSectionBaseRadMaskedTextInput
Derived Classes:
Inherited Members
Constructors
RadMaskedTextInput()
Initializes a new instance of the RadMaskedTextInput class.
Declaration
public RadMaskedTextInput()
Fields
ValidationRegexProperty
Identifies the ValidationRegex dependency property.
Declaration
public static readonly DependencyProperty ValidationRegexProperty
Field Value
DependencyProperty
ValueModeProperty
Identifies the ValueMode dependency property.
Declaration
public static readonly DependencyProperty ValueModeProperty
Field Value
DependencyProperty
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
DependencyProperty
Properties
MaskedTextResolved
Gets the resolved masked text.
Declaration
protected override string MaskedTextResolved { get; }
Property Value
Overrides
ValidationRegex
Gets or sets the string used for the additional Regex validation.
Value
Gets or sets the Value property.
Methods
CoerceDisplayTextOverride()
The text has changed and the DisplayText has to be coerced against the Text.
Declaration
protected override string CoerceDisplayTextOverride()
Returns
Returns the display text.
Overrides
CoerceImeInputString(string)
Initial process of the text receives from the IME input.
CoerceInternalValueFromStronglyTypeValueOverride()
Coerces the ValueInternal property from the Value property.
Declaration
protected override void CoerceInternalValueFromStronglyTypeValueOverride()
Overrides
CoerceStronglyTypeValueFromInternalValueOverride()
Coerces the Value property from the ValueInternal property.
Declaration
protected override void CoerceStronglyTypeValueFromInternalValueOverride()
Overrides
CoerceTextInternalOverride(ref int)
The internal value has changed and the Text has to be coerced against the ValueInternal.
CoerceTextOverride(ref int)
The value has changed and the Text has to be coerced against the value.
CoerceValueOverride()
The text has changed and the value has to be coerced against the text.
Declaration
protected override bool CoerceValueOverride()
Returns
Returns true if the value can be coerced.
Overrides
FindNextAvailablePosition(bool, int)
Finds the next editable position after delete or backspace press. Skips literals if needed.
GetFormattedValue(string)
Formats the TextInternal property based on the ValueMode value and passes the result to the Value.
GetNextChar(ITokenValidationRule, char, bool?)
Retrieves the next char.
Declaration
protected virtual char GetNextChar(ITokenValidationRule rule, char spinValue, bool? forwardSpin)
Parameters
rule
Currently used rule.
spinValue
The char which is currently spin.
forwardSpin
bool?
Direction of spin.
Returns
GetSectionsFromMaskedTextOverride()
When overridden gets the sections' position from the MaskedText.
Declaration
public virtual Dictionary<int, string> GetSectionsFromMaskedTextOverride()
Returns
Returns a dictionary with the sections.
Remarks
The key of the items is the position of the section, the value is the string representation of the section.
GetValidCharOverride(char, ref int, bool?, out bool)
Gets the valid char for a position.
Declaration
protected override string GetValidCharOverride(char character, ref int position, bool? forwardSpin, out bool isValid)
Parameters
character
The character to be validated.
position
Position in the MaskedText to validate.
forwardSpin
bool?
True if a forward spin is applied, false for backward spin, null for no spin.
isValid
True if the character is valid for this position.
Returns
Returns the result valid character for the specified position.
Overrides
HandleBackKeyNoMask()
Handles the Back key when no mask.
Declaration
protected override void HandleBackKeyNoMask()
Overrides
HandleEnterKey()
Handles the Enter key.
Declaration
protected override bool HandleEnterKey()
Returns
Returns a value indicating whether event should be handled or not.
Overrides
HandlePasteNoMask(object, out object)
Handles paste operation in no-mask scenarios.
HandlePasteOverride(object, out object)
Handles the paste operation.
HandleSpaceKey()
Handles the Space key.
Declaration
protected override bool HandleSpaceKey()
Returns
Returns a value indicating whether event should be handled or not.
Overrides
HandleSpin(int, bool?)
Handle the spin of the value.
HandleSubstractKey()
Handles the Subtract key.
Declaration
protected override bool HandleSubstractKey()
Returns
Returns a value indicating whether event should be handled or not.
Overrides
InsertCharNoMask(char)
Inserts a new character when no mask.
Declaration
protected override void InsertCharNoMask(char character)
Parameters
character
Overrides
IsMaskValidOverride()
Performs validation on the masked text.
Declaration
protected override MaskValidationResult IsMaskValidOverride()
Returns
Returns validation result information.
Overrides
IsSeparatorNoMask(char)
Gets a value indicating whether a char is a separator when no mask.
MoveCharactersInInsertBehavior(ref int, char, bool)
Move characters to left and adjusts the caret position when BackSpace/Delete is pressed.
OnApplyTemplate()
Called when the template applied to the element is applied. This method provides an opportunity to perform additional template-specific setup.
Declaration
public override void OnApplyTemplate()
Overrides
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnLoadedOverride(object, RoutedEventArgs)
Called when control is loaded.
Declaration
protected override void OnLoadedOverride(object sender, RoutedEventArgs e)
Parameters
sender
The sender.
e
RoutedEventArgs
The RoutedEventArgs instance containing the event data.
Overrides
OnSelectionOnFocus(SelectionOnFocus)
Determines the new SelectionStart position.
Declaration
protected override int OnSelectionOnFocus(SelectionOnFocus selectionOnFocus)
Parameters
selectionOnFocus
Returns
Overrides
ParseMask()
Parses the Mask property and sets the MaskedText.
Declaration
protected override string ParseMask()
Returns
Returns the parsed Mask.
Overrides
ProcessChar(char)
Inserts the input char or overwrites the current char with the input one.
Declaration
protected override void ProcessChar(char inputSymbol)
Parameters
inputSymbol
Overrides
RefreshSectionPositions()
Refreshes the positions of the sections.
Declaration
protected override void RefreshSectionPositions()
Overrides
UpdateEditableTextEndPositionsOverride(ref int, ref int)
Updates the EditableTextEnd and EditableTextStart properties.
ValueChangingOverride(RoutedEventArgs)
Performs a pre-value changing checking whether the inherited control allows the ValueChanging(ed) events to be raised.
Declaration
protected override bool ValueChangingOverride(RoutedEventArgs args)
Parameters
args
RoutedEventArgs
Returns
Returns a boolean flag whether the value change has to be handled or not.
Overrides
Remarks
If false is returns, the value change proceeds. If true is returned, the update is terminated.