ClassRadMaskedInputBase
Represents the base class for RadMaskedInput controls.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
[Themable]
public abstract class RadMaskedInputBase : Control
Inheritance: objectRadMaskedInputBase
Derived Classes:
Constructors
RadMaskedInputBase()
Initializes a new instance of the RadMaskedInputBase class.
Declaration
protected RadMaskedInputBase()
Fields
AcceptsReturnProperty
Identifies the AcceptsReturn dependency property.
Declaration
public static readonly DependencyProperty AcceptsReturnProperty
Field Value
DependencyProperty
AddSignKey
Keyboard key code for the positive sign key on PC.
AllowInvalidValuesProperty
Identifies the AllowInvalidValues dependency property.
Declaration
public static readonly DependencyProperty AllowInvalidValuesProperty
Field Value
DependencyProperty
ClearButtonStyleProperty
Identifies the ClearButtonStyle dependency property.
Declaration
public static readonly DependencyProperty ClearButtonStyleProperty
Field Value
DependencyProperty
ClearCommandProperty
Identifies the ClearCommand dependency property.
Declaration
public static readonly DependencyProperty ClearCommandProperty
Field Value
DependencyProperty
CopyCommandProperty
Identifies the CopyCommand dependency property.
Declaration
public static readonly DependencyProperty CopyCommandProperty
Field Value
DependencyProperty
CultureProperty
Identifies the Culture dependency property.
Declaration
public static readonly DependencyProperty CultureProperty
Field Value
DependencyProperty
CutCommandProperty
Identifies the CutCommand dependency property.
Declaration
public static readonly DependencyProperty CutCommandProperty
Field Value
DependencyProperty
DecimalCommaKey
Keyboard key code for the comma symbol on PC.
DecimalPointKey
Keyboard key code for the decimal point symbol on PC.
DisplayErrorMessageProperty
Identifies the DisplayErrorMessage dependency property.
Declaration
public static readonly DependencyProperty DisplayErrorMessageProperty
Field Value
DependencyProperty
EmptyContentProperty
Identifies the EmptyContent dependency property.
Declaration
public static readonly DependencyProperty EmptyContentProperty
Field Value
DependencyProperty
EmptyContentTemplateProperty
Identifies the EmptyContentTemplate dependency property.
Declaration
public static readonly DependencyProperty EmptyContentTemplateProperty
Field Value
DependencyProperty
ErrorMessageProperty
Identifies the ErrorMessage dependency property.
Declaration
public static readonly DependencyProperty ErrorMessageProperty
Field Value
DependencyProperty
ErrorMessageTemplateProperty
Identifies the ErrorMessageTemplate dependency property.
Declaration
public static readonly DependencyProperty ErrorMessageTemplateProperty
Field Value
DependencyProperty
FormatStringProperty
Identifies the FormatString dependency property.
Declaration
public static readonly DependencyProperty FormatStringProperty
Field Value
DependencyProperty
InputBehaviorProperty
Identifies the InputBehavior dependency property.
Declaration
public static readonly DependencyProperty InputBehaviorProperty
Field Value
DependencyProperty
IsClearButtonVisibleProperty
Identifies the IsClearButtonVisible dependency property.
Declaration
public static readonly DependencyProperty IsClearButtonVisibleProperty
Field Value
DependencyProperty
IsLastPositionEditableProperty
Identifies the IsLastPositionEditable dependency property.
Declaration
public static readonly DependencyProperty IsLastPositionEditableProperty
Field Value
DependencyProperty
IsMaskValidProperty
Identifies the IsMaskValid dependency property.
Declaration
public static readonly DependencyProperty IsMaskValidProperty
Field Value
DependencyProperty
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
MaskProperty
Identifies the Mask dependency property.
Declaration
public static readonly DependencyProperty MaskProperty
Field Value
DependencyProperty
NegativeSignKey
Keyboard key code for the negative sign key on PC.
OriginalValueProperty
Identifies the OriginalValue dependency property.
Declaration
public static readonly DependencyProperty OriginalValueProperty
Field Value
DependencyProperty
PasteCommandProperty
Identifies the PasteCommand dependency property.
Declaration
public static readonly DependencyProperty PasteCommandProperty
Field Value
DependencyProperty
PlaceholderProperty
Identifies the Placeholder dependency property.
Declaration
public static readonly DependencyProperty PlaceholderProperty
Field Value
DependencyProperty
SectionsNavigationModeProperty
Identifies the SectionsNavigationMode dependency property.
Declaration
public static readonly DependencyProperty SectionsNavigationModeProperty
Field Value
DependencyProperty
SelectionOnFocusProperty
Identifies the SelectionOnFocus dependency property.
Declaration
public static readonly DependencyProperty SelectionOnFocusProperty
Field Value
DependencyProperty
SpinModeProperty
Identifies the SpinMode dependency property.
Declaration
public static readonly DependencyProperty SpinModeProperty
Field Value
DependencyProperty
TextBoxStyleProperty
Identifies the TextBoxStyle dependency property.
Declaration
public static readonly DependencyProperty TextBoxStyleProperty
Field Value
DependencyProperty
TextModeProperty
Identifies the TextMode dependency property.
Declaration
public static readonly DependencyProperty TextModeProperty
Field Value
DependencyProperty
TextProperty
Gets the Text of the control.
Declaration
public static readonly DependencyProperty TextProperty
Field Value
DependencyProperty
UpdateValueEventProperty
Identifies the UpdateValueEvent dependency property.
Declaration
public static readonly DependencyProperty UpdateValueEventProperty
Field Value
DependencyProperty
ValueChangedEvent
Identifies the ValueChanged routed event.
Declaration
public static readonly RoutedEvent ValueChangedEvent
Field Value
RoutedEvent
ValueChangingEvent
Identifies the ValueChanging routed event.
Declaration
public static readonly RoutedEvent ValueChangingEvent
Field Value
RoutedEvent
ValueToTextConverterProperty
Identifies the ValueToTextConverter dependency property.
Declaration
public static readonly DependencyProperty ValueToTextConverterProperty
Field Value
DependencyProperty
Properties
AcceptsReturn
Gets or sets a value indicating whether newline is accepted when the mask supports multiline.
Declaration
public bool AcceptsReturn { get; set; }
Property Value
Remarks
Default value is false.
AllowInvalidValues
Gets or sets whether invalid values should be accepted as valid and set to the Value property.
AllowedDateTimeTokens
Gets the allowed DateTime tokens from the TokenLocator.
Declaration
protected static string AllowedDateTimeTokens { get; }
Property Value
AllowedModifierTokens
Gets the allowed modifier tokens from the TokenLocator.
Declaration
protected static string AllowedModifierTokens { get; }
Property Value
AllowedNumericTokens
Gets the allowed Numeric tokens from the TokenLocator.
Declaration
protected static string AllowedNumericTokens { get; }
Property Value
Builder
Represents a StringBuilder for performing string operations.
Declaration
protected StringBuilder Builder { get; set; }
Property Value
ClearButtonStyle
Gets or sets the ClearButton style.
Declaration
public Style ClearButtonStyle { get; set; }
Property Value
Style
ClearCommand
Gets or sets the Clear command.
Declaration
public DelegateCommand ClearCommand { get; set; }
Property Value
CopyCommand
Gets or sets the Copy command.
Declaration
public DelegateCommand CopyCommand { get; set; }
Property Value
Culture
Gets or sets the Culture.
Declaration
public CultureInfo Culture { get; set; }
Property Value
Remarks
Default culture is "en-US".
CutCommand
Gets or sets the Cut command.
Declaration
public DelegateCommand CutCommand { get; set; }
Property Value
DisplayErrorMessage
Gets the DisplayErrorMessage.
Declaration
public string DisplayErrorMessage { get; }
Property Value
Remarks
A default error message will be shown unless the ErrorMessage property is not set.
EditableTextEnd
Gets the ending position in the MaskedText that can be edited.
EditableTextLength
Gets the length of the editable section in the MaskedText.
EditableTextStart
Gets the starting position in the MaskedText that can be edited.
EmptyContent
Gets or sets the Empty content.
Declaration
public object EmptyContent { get; set; }
Property Value
Remarks
Default is an empty string.
EmptyContentTemplate
Gets or sets the template of the EmptyContent.
Declaration
public DataTemplate EmptyContentTemplate { get; set; }
Property Value
DataTemplate
ErrorMessage
Gets or sets the Error message.
ErrorMessageTemplate
Gets or sets the template of the ErrorMessage.
Declaration
public DataTemplate ErrorMessageTemplate { get; set; }
Property Value
DataTemplate
EscapedPositions
Contains the escaped positions of the MaskedText.
FormatString
Gets or sets the formatting string used to format the Text value.
InputBehavior
Gets or sets the InputBehavior.
Declaration
public InputBehavior InputBehavior { get; set; }
Property Value
Remarks
Default for numeric input should be Insert and for text and date input Replace.
InputBehaviorResolved
Gets or sets the resolved InputBehavior.
Declaration
protected virtual InputBehavior InputBehaviorResolved { get; }
Property Value
IsClearButtonVisible
Gets or sets whether the clear button is visible.
IsLastPositionEditable
Gets or sets a value indicating whether this instance is last position editable.
Declaration
public bool IsLastPositionEditable { get; set; }
Property Value
True if this instance is last position editable; otherwise, false.
IsMaskValid
Gets or sets whether the control's mask is valid.
IsReadOnly
Gets or sets whether the control is IsReadOnly.
IsRevertingValue
Gets or sets a value indicating whether the control is currently reverting its value.
IsUsingOneWayBinding
Gets or sets value indicating whether the control is one-way bound.
IsValueChangingFromInternal
Specifies whether the Value is being changed from the ValueInternal property.
Declaration
protected bool IsValueChangingFromInternal { get; set; }
Property Value
IsValueInternalSync
Specifies whether the ValueInternal is being synched from the Value property.
LiteralPositions
Contains the literal positions of the MaskedText.
Mask
Gets or sets the Mask.
MaskResolved
Gets or sets the resolved Mask.
MaskedTextResolved
The resolved masked text.
Declaration
protected virtual string MaskedTextResolved { get; }
Property Value
OriginalValue
Gets or sets the OriginalValue.
PasteCommand
Gets or sets the Paste command.
Declaration
public DelegateCommand PasteCommand { get; set; }
Property Value
Placeholder
Gets or sets the Placeholder.
Declaration
[TypeConverter(typeof(CharConverter))]
public char Placeholder { get; set; }
Property Value
Remarks
Default placeholder is "_".
SectionsNavigationMode
Gets or sets the sections navigation mode.
Declaration
public SectionsNavigationMode SectionsNavigationMode { get; set; }
Property Value
The sections navigation mode.
SelectionLength
Gets or sets the Selection length.
SelectionOnFocus
Gets or sets the SelectionOnFocus.
Declaration
public SelectionOnFocus SelectionOnFocus { get; set; }
Property Value
Remarks
Controls the selection when focus is acquired. Default is Unchanged.
SelectionStart
Gets or sets the Selection start.
Declaration
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public int SelectionStart { get; set; }
Property Value
Separators
Contains the Separators of the Mask.
SpinMode
Gets or sets the SpinMode.
Text
Identifies the Text dependency property.
TextBoxStyle
Gets the style of the TextBox.
Declaration
public Style TextBoxStyle { get; set; }
Property Value
Style
TextMode
Gets or sets the TextMode.
Declaration
public TextMode TextMode { get; set; }
Property Value
Remarks
Controls the of format of the Text property. Default is MaskedText.
UpdateValueEvent
Gets or sets the UpdateValueEvent.
Declaration
public UpdateValueEvent UpdateValueEvent { get; set; }
Property Value
Remarks
Controls when the Value is updated. Default is PropertyChanged.
UseBaseNavigation
Gets or sets a value whether the base class should apply base navigation.
ValueToTextConverter
Gets or sets the ValueToTextConverter.
Declaration
public IValueConverter ValueToTextConverter { get; set; }
Property Value
IValueConverter
Methods
CallSpin(bool)
Spins the control.
Declaration
public void CallSpin(bool isUp)
Parameters
isUp
True for spinning up, false for down.
CanModifyChar(char)
Gets a value indicating whether the char can be modified when no mask.
CanReplaceChar(char)
Gets a value indicating whether the char can be replaced when no mask.
CheckForDataValidationErrors(DependencyProperty, ref MaskValidationResult)
Checks the value of a DependencyProperty for validation errors.
Declaration
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "1#")]
protected void CheckForDataValidationErrors(DependencyProperty prop, ref MaskValidationResult result)
Parameters
prop
DependencyProperty
The DependencyProperty to be checked.
result
Returns the validation information.
ClearSelectionNoMask()
Clears the selection when no mask.
Declaration
protected virtual void ClearSelectionNoMask()
CoerceDisplayTextOverride()
The text has changed and the DisplayText has to be coerced against the Text.
Declaration
protected abstract string CoerceDisplayTextOverride()
Returns
Returns the display text.
CoerceImeInputString(string)
Initial process of the text receives from the IME input.
CoerceInternalValueFromStronglyTypeValueOverride()
Coerces the ValueInternal property from the Value property.
Declaration
protected abstract void CoerceInternalValueFromStronglyTypeValueOverride()
CoerceStronglyTypeValueFromInternalValueOverride()
Coerces the Value property from the ValueInternal property.
Declaration
protected abstract void CoerceStronglyTypeValueFromInternalValueOverride()
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 abstract bool CoerceValueOverride()
Returns
Returns true if the value can be coerced.
CopyBinding(Binding)
Clones a Binding and sets its Mode to TwoWay and UpdateSourceTrigger to Explicit.
Declaration
protected static Binding CopyBinding(Binding bindingToCopy)
Parameters
bindingToCopy
Binding
The binding to copy.
Returns
Binding
Returns the copied binding.
Remarks
This is intended to be used in scenarios, where a one-way binding is used and value change notifications are still needed.
FindNextAvailablePosition(bool, int)
Finds the next available position in the MaskedTextResolved.
FindNextSeparatorPosition(bool, int, out Separator)
Finds the next position with separator.
Declaration
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "2#")]
protected virtual int FindNextSeparatorPosition(bool forward, int position, out Separator separator)
Parameters
forward
The direction of the search. True for forward, false for backward.
position
The position from which the search starts.
separator
The found separator.
Returns
Returns the position of the separator.
Remarks
If no position is found, the method will return the EditableTextStart or EditableTextEnd depending on the direction.
FindNextSeparatorPosition(int)
Finds the next separator position when no mask.
FindPreviousAvailablePositionNoMask()
Finds the previous available position when no mask.
Declaration
protected virtual int FindPreviousAvailablePositionNoMask()
Returns
FindPreviousSeparatorPosition(int)
Finds the previous separator position.
GetRightOffset()
Gets the offset from the right.
GetValidCharOverride(char, ref int, bool?, out bool)
Gets the valid char for a position.
Declaration
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "1#")]
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "3#")]
protected abstract 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.
HandleBackKeyNoMask()
Handles the Back key when no mask.
Declaration
protected virtual void HandleBackKeyNoMask()
HandleBackKeyWithMask()
Process the input when Backspace has been pressed and the mask in not "".
Declaration
protected virtual void HandleBackKeyWithMask()
HandleBackKeyWithMaskSelected()
Process the input when Backspace has been pressed, the mask in not "" and there is a selection.
Declaration
protected virtual void HandleBackKeyWithMaskSelected()
HandleClearOverride()
Called, when the Clear command is invoked.
Declaration
protected virtual void HandleClearOverride()
HandleDeleteKeyNoMask()
Handles the Delete key when no mask.
Declaration
protected virtual void HandleDeleteKeyNoMask()
HandleDivideKey()
Handles the Divide key.
Declaration
protected virtual bool HandleDivideKey()
Returns
Returns a value indicating whether event should be handled or not.
HandleEnterKey()
Handles the Enter key.
Declaration
protected virtual bool HandleEnterKey()
Returns
Returns a value indicating whether event should be handled or not.
HandleLeftKey()
Handles the left key down.
Declaration
protected virtual void HandleLeftKey()
HandleMultiplyKey()
Handles the Multiply key.
Declaration
protected virtual bool HandleMultiplyKey()
Returns
Returns a value indicating whether event should be handled or not.
HandlePaste()
Handles the paste operation.
Declaration
protected virtual void HandlePaste()
HandlePasteNoMask(object, out object)
Handles paste operation in no-mask scenarios.
Declaration
[SuppressMessage("Microsoft.Design", "CA1007:UseGenericsWhereAppropriate")]
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "1#")]
protected virtual bool HandlePasteNoMask(object value, out object returnString)
Parameters
value
returnString
Returns
HandlePasteOverride(object, out object)
Handles the paste operation.
Declaration
[SuppressMessage("Microsoft.Design", "CA1007:UseGenericsWhereAppropriate")]
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "1#")]
protected virtual bool HandlePasteOverride(object value, out object returnString)
Parameters
value
The value to be pasted.
returnString
Returns the string representation of the value.
Returns
Returns true if the value can be pasted.
HandleSpaceKey()
Handles the Space key.
Declaration
protected virtual bool HandleSpaceKey()
Returns
Returns a value indicating whether event should be handled or not.
HandleSpin(int, bool?)
Handle the spin of the value.
HandleSpinNoMask(bool)
Handles the spin when no mask.
Declaration
protected virtual void HandleSpinNoMask(bool isUp)
Parameters
isUp
HandleSubstractKey()
Handles the Subtract key.
Declaration
protected virtual bool HandleSubstractKey()
Returns
Returns a value indicating whether event should be handled or not.
HandleTabKeyNoMask()
Handles the tab key when no mask.
HandleUnknownKeyOverride(int)
Handles the key press of an Unknown key with a specific key code.
InsertCharNoMask(char)
Inserts a new character when no mask.
Declaration
protected virtual void InsertCharNoMask(char character)
Parameters
character
IsCharValid(char)
Gets a value indicating whether the char is valid when no mask.
IsMaskValidOverride()
Performs validation on the masked text.
Declaration
protected virtual MaskValidationResult IsMaskValidOverride()
Returns
Returns validation result information.
IsPlaceholder(char)
Checks whether a specific character is a placeholder.
IsPlaceholder(int)
Checks whether a specific index is a placeholder.
IsPlaceholder(string)
Checks whether a specific string is a placeholder.
IsSeparator(char)
Checks whether a specific character is a separator.
IsSeparator(char, out Separator)
Checks whether a specific character is a separator.
Declaration
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "1#")]
protected virtual bool IsSeparator(char character, out Separator separator)
Parameters
character
The character to be checked.
separator
Returns the separator that the character represents.
Returns
Returns true if the character is a separator.
IsSeparator(string)
Checks whether a specified string is a separator.
IsSeparator(string, out Separator)
Checks whether a specified string is a separator.
Declaration
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "1#")]
protected virtual bool IsSeparator(string value, out Separator separator)
Parameters
value
The string to be checked.
separator
Returns the separator that the string represents.
Returns
Returns true if the character is a separator.
IsSeparatorNoMask(char)
Gets a value indicating whether a char is a separator when no mask.
MoveCharactersInInsertBehavior(ref int, char, bool)
Moves characters to the left in Currency and Numeric Input.
Declaration
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "1#")]
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "0#")]
protected virtual void MoveCharactersInInsertBehavior(ref int position, char inputSymbol, bool forward)
Parameters
position
inputSymbol
forward
MoveCharactersInInsertBehaviorOverride(ref int, char, bool)
Moves a group characters from the specified position to the left (forward) or right (backward) one position from the last Placeholder.
Declaration
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "0#")]
protected virtual void MoveCharactersInInsertBehaviorOverride(ref int position, char character, bool forward)
Parameters
position
The position from which the move has to be done.
character
The character input at this position.
forward
The direction of the moving.
Remarks
The method expects the text after the move to the set to the internal TextBox.
OnApplicationCut(object, ExecutedRoutedEventArgs)
Handles ApplicationCommand.Cut execution.
Declaration
protected void OnApplicationCut(object sender, ExecutedRoutedEventArgs e)
Parameters
sender
e
ExecutedRoutedEventArgs
OnApplicationPaste(object, ExecutedRoutedEventArgs)
Handles ApplicationCommand.Paste execution.
Declaration
protected void OnApplicationPaste(object sender, ExecutedRoutedEventArgs e)
Parameters
sender
e
ExecutedRoutedEventArgs
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates automation peer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Returns the automation peer.
OnCultureChanged()
Executed when the Culture changes.
Declaration
protected virtual void OnCultureChanged()
OnLoadedOverride(object, RoutedEventArgs)
Called when control is loaded.
Declaration
protected virtual void OnLoadedOverride(object sender, RoutedEventArgs e)
Parameters
sender
The sender.
e
RoutedEventArgs
The RoutedEventArgs instance containing the event data.
OnMouseEnter(MouseEventArgs)
When the mouse enters the control.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
e
MouseEventArgs
Mouse event args.
OnMouseLeave(MouseEventArgs)
When the mouse leaves the control.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
e
MouseEventArgs
Mouse event args.
OnMouseWheel(MouseWheelEventArgs)
Handles the MouseWheel.
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
e
MouseWheelEventArgs
Event args of the MouseWheel.
OnPreviewKeyDown(KeyEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
e
KeyEventArgs
OnSelectionOnFocus(SelectionOnFocus)
Executes when the focus is obtained.
Declaration
protected virtual int OnSelectionOnFocus(SelectionOnFocus selectionOnFocus)
Parameters
selectionOnFocus
The selection on focus.
Returns
Returns the selection start to be set when the focus is obtained.
OnUnloadedOverride(object, RoutedEventArgs)
Called when the control is unloaded.
Declaration
protected virtual void OnUnloadedOverride(object sender, RoutedEventArgs e)
Parameters
sender
The sender.
e
RoutedEventArgs
The RoutedEventArgs instance containing the event data.
OnValueChangedBase(DependencyObject, DependencyPropertyChangedEventArgs, bool)
Executed when the Value property changes.
Declaration
protected static void OnValueChangedBase(DependencyObject d, DependencyPropertyChangedEventArgs args, bool processValueChanged)
Parameters
d
DependencyObject
The owner of the value.
args
DependencyPropertyChangedEventArgs
The changed args.
processValueChanged
True is ProcessValueChanged should be called.
ParseMask()
Parses the Mask property and sets the MaskedText.
Declaration
protected abstract string ParseMask()
Returns
Returns the parsed Mask.
ProcessChar(char)
Process the input when a key has been pressed.
Declaration
protected virtual void ProcessChar(char inputSymbol)
Parameters
inputSymbol
Remove(int, int, bool)
Removes number of characters from the internal text when no mask.
ReplaceChar(StringBuilder, ref int)
Replaces a char when no mask.
Declaration
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "1#")]
protected virtual void ReplaceChar(StringBuilder text, ref int position)
Parameters
text
The text builder.
position
The position of the char.
ReplacePositionWithPlaceholder(int, bool, bool)
When BackSpace or Delete are pressed, replaces the current char with PlaceHolder.
SetDefaultStyleKey()
Sets the DefaultStyleKey for the control.
Declaration
protected virtual void SetDefaultStyleKey()
SetFromRightOffset(int)
Sets the offset from the right.
Declaration
protected virtual void SetFromRightOffset(int offset)
Parameters
offset
SetSeparators(params Separator[])
Method that sets predefined separators.
Declaration
protected virtual void SetSeparators(params Separator[] separatorsArray)
Parameters
separatorsArray
Array of separators to be set.
StartsWithSeparator(StringBuilder, bool, out Separator)
Checks whether a specified string starts with a separator.
Declaration
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "2#")]
protected virtual bool StartsWithSeparator(StringBuilder text, bool forward, out Separator separator)
Parameters
text
The string builder to search in.
forward
Direction of the search - true for forward, false for backward.
separator
The found separator.
Returns
Returns true if the string starts with a separator.
StartsWithSeparator(StringBuilder, bool, out Separator, ref int)
Checks whether a specified string starts with a separator.
Declaration
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "3#")]
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "2#")]
protected virtual bool StartsWithSeparator(StringBuilder text, bool forward, out Separator separator, ref int offset)
Parameters
text
The string builder to search in.
forward
Direction of the search - true for forward, false for backward.
separator
The found separator.
offset
The offset that the search begins from.
Returns
Returns true if the string starts with a separator.
TrimTextStart(string, params char[])
Trims a specified string from certain characters.
UpdateEditableTextEndPositions()
Forces updates of the EditableTextEnd and EditableTextStart properties.
Declaration
protected void UpdateEditableTextEndPositions()
UpdateEditableTextEndPositionsOverride(ref int, ref int)
Updates the EditableTextEnd and EditableTextStart properties.
Declaration
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "1#")]
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "0#")]
protected virtual void UpdateEditableTextEndPositionsOverride(ref int start, ref int end)
Parameters
start
end
ValueChangingOverride(RoutedEventArgs)
Performs a pre-value changing checking whether the inherited control allows the ValueChanging(ed) events to be raised.
Declaration
protected abstract bool ValueChangingOverride(RoutedEventArgs args)
Parameters
args
RoutedEventArgs
Returns
Returns a boolean flag whether the value change has to be handled or not.
Remarks
If false is returns, the value change proceeds. If true is returned, the update is terminated.
Events
ValueChanged
Occurs when the value is changed.
Declaration
public event EventHandler<RadRoutedEventArgs> ValueChanged
Event Value
ValueChanging
Occurs before the value is changed.
Declaration
public event EventHandler<RadMaskedInputValueChangingEventArgs> ValueChanging
Event Value