New to Telerik UI for WPFStart a free 30-day trial

Represents the base class for RadMaskedInput controls.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
[Themable]
public abstract class RadMaskedInputBase : Control

Inheritance: objectRadMaskedInputBase

Derived Classes: RadMaskedCurrencyInputRadMaskedNumericInputRadMaskedSectionBase

Constructors

Initializes a new instance of the RadMaskedInputBase class.

C#
protected RadMaskedInputBase()

Fields

AcceptsReturnProperty

DependencyProperty

Identifies the AcceptsReturn dependency property.

C#
public static readonly DependencyProperty AcceptsReturnProperty

Keyboard key code for the positive sign key on PC.

C#
protected const int AddSignKey = 107

AllowInvalidValuesProperty

DependencyProperty

Identifies the AllowInvalidValues dependency property.

C#
public static readonly DependencyProperty AllowInvalidValuesProperty

ClearButtonStyleProperty

DependencyProperty

Identifies the ClearButtonStyle dependency property.

C#
public static readonly DependencyProperty ClearButtonStyleProperty

ClearCommandProperty

DependencyProperty

Identifies the ClearCommand dependency property.

C#
public static readonly DependencyProperty ClearCommandProperty

CopyCommandProperty

DependencyProperty

Identifies the CopyCommand dependency property.

C#
public static readonly DependencyProperty CopyCommandProperty

CultureProperty

DependencyProperty

Identifies the Culture dependency property.

C#
public static readonly DependencyProperty CultureProperty

CutCommandProperty

DependencyProperty

Identifies the CutCommand dependency property.

C#
public static readonly DependencyProperty CutCommandProperty

Keyboard key code for the comma symbol on PC.

C#
protected const int DecimalCommaKey = 188

Keyboard key code for the decimal point symbol on PC.

C#
protected const int DecimalPointKey = 190

DisplayErrorMessageProperty

DependencyProperty

Identifies the DisplayErrorMessage dependency property.

C#
public static readonly DependencyProperty DisplayErrorMessageProperty

EmptyContentProperty

DependencyProperty

Identifies the EmptyContent dependency property.

C#
public static readonly DependencyProperty EmptyContentProperty

Identifies the EmptyContentTemplate dependency property.

C#
public static readonly DependencyProperty EmptyContentTemplateProperty

ErrorMessageProperty

DependencyProperty

Identifies the ErrorMessage dependency property.

C#
public static readonly DependencyProperty ErrorMessageProperty

Identifies the ErrorMessageTemplate dependency property.

C#
public static readonly DependencyProperty ErrorMessageTemplateProperty

FormatStringProperty

DependencyProperty

Identifies the FormatString dependency property.

C#
public static readonly DependencyProperty FormatStringProperty

InputBehaviorProperty

DependencyProperty

Identifies the InputBehavior dependency property.

C#
public static readonly DependencyProperty InputBehaviorProperty

Identifies the IsClearButtonVisible dependency property.

C#
public static readonly DependencyProperty IsClearButtonVisibleProperty

Identifies the IsLastPositionEditable dependency property.

C#
public static readonly DependencyProperty IsLastPositionEditableProperty

IsMaskValidProperty

DependencyProperty

Identifies the IsMaskValid dependency property.

C#
public static readonly DependencyProperty IsMaskValidProperty

IsReadOnlyProperty

DependencyProperty

Identifies the IsReadOnly dependency property.

C#
public static readonly DependencyProperty IsReadOnlyProperty

MaskProperty

DependencyProperty

Identifies the Mask dependency property.

C#
public static readonly DependencyProperty MaskProperty

Keyboard key code for the negative sign key on PC.

C#
protected const int NegativeSignKey = 189

OriginalValueProperty

DependencyProperty

Identifies the OriginalValue dependency property.

C#
public static readonly DependencyProperty OriginalValueProperty

PasteCommandProperty

DependencyProperty

Identifies the PasteCommand dependency property.

C#
public static readonly DependencyProperty PasteCommandProperty

PlaceholderProperty

DependencyProperty

Identifies the Placeholder dependency property.

C#
public static readonly DependencyProperty PlaceholderProperty

Identifies the SectionsNavigationMode dependency property.

C#
public static readonly DependencyProperty SectionsNavigationModeProperty

SelectionOnFocusProperty

DependencyProperty

Identifies the SelectionOnFocus dependency property.

C#
public static readonly DependencyProperty SelectionOnFocusProperty

SpinModeProperty

DependencyProperty

Identifies the SpinMode dependency property.

C#
public static readonly DependencyProperty SpinModeProperty

TextBoxStyleProperty

DependencyProperty

Identifies the TextBoxStyle dependency property.

C#
public static readonly DependencyProperty TextBoxStyleProperty

TextModeProperty

DependencyProperty

Identifies the TextMode dependency property.

C#
public static readonly DependencyProperty TextModeProperty

TextProperty

DependencyProperty

Gets the Text of the control.

C#
public static readonly DependencyProperty TextProperty

UpdateValueEventProperty

DependencyProperty

Identifies the UpdateValueEvent dependency property.

C#
public static readonly DependencyProperty UpdateValueEventProperty

Identifies the ValueChanged routed event.

C#
public static readonly RoutedEvent ValueChangedEvent

Identifies the ValueChanging routed event.

C#
public static readonly RoutedEvent ValueChangingEvent

Identifies the ValueToTextConverter dependency property.

C#
public static readonly DependencyProperty ValueToTextConverterProperty

Properties

Gets or sets a value indicating whether newline is accepted when the mask supports multiline.

C#
public bool AcceptsReturn { get; set; }
Remarks:

Default value is false.

Gets the allowed DateTime tokens from the TokenLocator.

C#
protected static string AllowedDateTimeTokens { get; }

Gets the allowed modifier tokens from the TokenLocator.

C#
protected static string AllowedModifierTokens { get; }

Gets the allowed Numeric tokens from the TokenLocator.

C#
protected static string AllowedNumericTokens { get; }

Gets or sets whether invalid values should be accepted as valid and set to the Value property.

C#
public bool AllowInvalidValues { get; set; }

Represents a StringBuilder for performing string operations.

C#
protected StringBuilder Builder { get; set; }

Gets or sets the ClearButton style.

C#
public Style ClearButtonStyle { get; set; }

Gets or sets the Clear command.

C#
public DelegateCommand ClearCommand { get; set; }

Gets or sets the Copy command.

C#
public DelegateCommand CopyCommand { get; set; }

Gets or sets the Culture.

C#
public CultureInfo Culture { get; set; }
Remarks:

Default culture is "en-US".

Gets or sets the Cut command.

C#
public DelegateCommand CutCommand { get; set; }

Gets the DisplayErrorMessage.

C#
public string DisplayErrorMessage { get; }
Remarks:

A default error message will be shown unless the ErrorMessage property is not set.

Gets the ending position in the MaskedText that can be edited.

C#
protected int EditableTextEnd { get; }

Gets the length of the editable section in the MaskedText.

C#
protected int EditableTextLength { get; }

Gets the starting position in the MaskedText that can be edited.

C#
protected int EditableTextStart { get; }

Gets or sets the Empty content.

C#
public object EmptyContent { get; set; }
Remarks:

Default is an empty string.

Gets or sets the template of the EmptyContent.

C#
public DataTemplate EmptyContentTemplate { get; set; }

Gets or sets the Error message.

C#
public string ErrorMessage { get; set; }

Gets or sets the template of the ErrorMessage.

C#
public DataTemplate ErrorMessageTemplate { get; set; }

Contains the escaped positions of the MaskedText.

C#
protected List<int> EscapedPositions { get; set; }

Gets or sets the formatting string used to format the Text value.

C#
public string FormatString { get; set; }

Gets or sets the InputBehavior.

C#
public InputBehavior InputBehavior { get; set; }
Remarks:

Default for numeric input should be Insert and for text and date input Replace.

Gets or sets the resolved InputBehavior.

C#
protected virtual InputBehavior InputBehaviorResolved { get; }

Gets or sets whether the clear button is visible.

C#
public bool IsClearButtonVisible { get; set; }

Gets or sets a value indicating whether this instance is last position editable.

C#
public bool IsLastPositionEditable { get; set; }
Property Value:

True if this instance is last position editable; otherwise, false.

Gets or sets whether the control's mask is valid.

C#
public bool IsMaskValid { get; }

Gets or sets whether the control is IsReadOnly.

C#
public bool IsReadOnly { get; set; }

Gets or sets a value indicating whether the control is currently reverting its value.

C#
protected bool IsRevertingValue { get; set; }

Gets or sets value indicating whether the control is one-way bound.

C#
protected bool IsUsingOneWayBinding { get; }

Specifies whether the Value is being changed from the ValueInternal property.

C#
protected bool IsValueChangingFromInternal { get; set; }

Specifies whether the ValueInternal is being synched from the Value property.

C#
protected bool IsValueInternalSync { get; set; }

Contains the literal positions of the MaskedText.

C#
protected List<int> LiteralPositions { get; set; }

Gets or sets the Mask.

C#
public string Mask { get; set; }

The resolved masked text.

C#
protected virtual string MaskedTextResolved { get; }

Gets or sets the resolved Mask.

C#
protected string MaskResolved { get; set; }

Gets or sets the OriginalValue.

C#
public object OriginalValue { get; set; }

Gets or sets the Paste command.

C#
public DelegateCommand PasteCommand { get; set; }

Gets or sets the Placeholder.

C#
[TypeConverter(typeof(CharConverter))]
public char Placeholder { get; set; }
Remarks:

Default placeholder is "_".

Gets or sets the sections navigation mode.

C#
public SectionsNavigationMode SectionsNavigationMode { get; set; }
Property Value:

The sections navigation mode.

Gets or sets the Selection length.

C#
public int SelectionLength { get; set; }

Gets or sets the SelectionOnFocus.

C#
public SelectionOnFocus SelectionOnFocus { get; set; }
Remarks:

Controls the selection when focus is acquired. Default is Unchanged.

Gets or sets the Selection start.

C#
public int SelectionStart { get; set; }

Contains the Separators of the Mask.

C#
protected List<Separator> Separators { get; set; }

Gets or sets the SpinMode.

C#
public SpinMode SpinMode { get; set; }

Identifies the Text dependency property.

C#
public string Text { get; set; }

Gets the style of the TextBox.

C#
public Style TextBoxStyle { get; set; }

Gets or sets the TextMode.

C#
public TextMode TextMode { get; set; }
Remarks:

Controls the of format of the Text property. Default is MaskedText.

Gets or sets the UpdateValueEvent.

C#
public UpdateValueEvent UpdateValueEvent { get; set; }
Remarks:

Controls when the Value is updated. Default is PropertyChanged.

Gets or sets a value whether the base class should apply base navigation.

C#
protected virtual bool UseBaseNavigation { get; }

ValueToTextConverter

IValueConverter

Gets or sets the ValueToTextConverter.

C#
public IValueConverter ValueToTextConverter { get; set; }

Methods

Spins the control.

C#
public void CallSpin(bool isUp)
Parameters:isUpbool

True for spinning up, false for down.

Gets a value indicating whether the char can be modified when no mask.

C#
protected virtual bool CanModifyChar(char character)
Parameters:charactercharReturns:

bool

Gets a value indicating whether the char can be replaced when no mask.

C#
protected virtual bool CanReplaceChar(char character)
Parameters:charactercharReturns:

bool

Checks the value of a DependencyProperty for validation errors.

C#
protected void CheckForDataValidationErrors(DependencyProperty prop, ref MaskValidationResult result)
Parameters:propDependencyProperty

The DependencyProperty to be checked.

resultMaskValidationResult

Returns the validation information.

Clears the selection when no mask.

C#
protected virtual void ClearSelectionNoMask()

The text has changed and the DisplayText has to be coerced against the Text.

C#
protected abstract string CoerceDisplayTextOverride()
Returns:

string

Returns the display text.

Initial process of the text receives from the IME input.

C#
protected virtual string CoerceImeInputString(string text)
Parameters:textstring

The initial text received from the IME.

Returns:

string

Coerces the ValueInternal property from the Value property.

C#
protected abstract void CoerceInternalValueFromStronglyTypeValueOverride()

Coerces the Value property from the ValueInternal property.

C#
protected abstract void CoerceStronglyTypeValueFromInternalValueOverride()

The internal value has changed and the Text has to be coerced against the ValueInternal.

C#
protected abstract string CoerceTextInternalOverride(ref int selectionStart)
Parameters:selectionStartint

The selection start.

Returns:

string

Returns the coerced text.

The value has changed and the Text has to be coerced against the value.

C#
protected abstract string CoerceTextOverride(ref int selectionStart)
Parameters:selectionStartint

The selection start.

Returns:

string

Returns the string to be coerced.

The text has changed and the value has to be coerced against the text.

C#
protected abstract bool CoerceValueOverride()
Returns:

bool

Returns true if the value can be coerced.

Clones a Binding and sets its Mode to TwoWay and UpdateSourceTrigger to Explicit.

C#
protected static Binding CopyBinding(Binding bindingToCopy)
Parameters:bindingToCopyBinding

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.

Finds the next available position in the MaskedTextResolved.

C#
protected virtual int FindNextAvailablePosition(bool forward, int position)
Parameters:forwardbool

True if the search is perform forwards, false for backwards.

positionint

The starting position of the search.

Returns:

int

Returns the found position.

Finds the next position with separator.

C#
protected virtual int FindNextSeparatorPosition(bool forward, int position, out Separator separator)
Parameters:forwardbool

The direction of the search. True for forward, false for backward.

positionint

The position from which the search starts.

separatorSeparator

The found separator.

Returns:

int

Returns the position of the separator.

Remarks:

If no position is found, the method will return the EditableTextStart or EditableTextEnd depending on the direction.

Finds the next separator position when no mask.

C#
protected virtual int FindNextSeparatorPosition(int position)
Parameters:positionintReturns:

int

Finds the previous available position when no mask.

C#
protected virtual int FindPreviousAvailablePositionNoMask()
Returns:

int

Finds the previous separator position.

C#
protected virtual int FindPreviousSeparatorPosition(int position)
Parameters:positionintReturns:

int

Gets the offset from the right.

C#
protected virtual int GetRightOffset()
Returns:

int

Gets the valid char for a position.

C#
protected abstract string GetValidCharOverride(char character, ref int position, bool? forwardSpin, out bool isValid)
Parameters:characterchar

The character to be validated.

positionint

Position in the MaskedText to validate.

forwardSpinbool?

True if a forward spin is applied, false for backward spin, null for no spin.

isValidbool

True if the character is valid for this position.

Returns:

string

Returns the result valid character for the specified position.

Handles the Back key when no mask.

C#
protected virtual void HandleBackKeyNoMask()

Process the input when Backspace has been pressed and the mask in not "".

C#
protected virtual void HandleBackKeyWithMask()

Process the input when Backspace has been pressed, the mask in not "" and there is a selection.

C#
protected virtual void HandleBackKeyWithMaskSelected()

Called, when the Clear command is invoked.

C#
protected virtual void HandleClearOverride()

Handles the Delete key when no mask.

C#
protected virtual void HandleDeleteKeyNoMask()

Handles the Divide key.

C#
protected virtual bool HandleDivideKey()
Returns:

bool

Returns a value indicating whether event should be handled or not.

Handles the Enter key.

C#
protected virtual bool HandleEnterKey()
Returns:

bool

Returns a value indicating whether event should be handled or not.

Handles the left key down.

C#
protected virtual void HandleLeftKey()

Handles the Multiply key.

C#
protected virtual bool HandleMultiplyKey()
Returns:

bool

Returns a value indicating whether event should be handled or not.

Handles the paste operation.

C#
protected virtual void HandlePaste()

Handles paste operation in no-mask scenarios.

C#
protected virtual bool HandlePasteNoMask(object value, out object returnString)
Parameters:valueobjectreturnStringobjectReturns:

bool

Handles the paste operation.

C#
protected virtual bool HandlePasteOverride(object value, out object returnString)
Parameters:valueobject

The value to be pasted.

returnStringobject

Returns the string representation of the value.

Returns:

bool

Returns true if the value can be pasted.

Handles the Space key.

C#
protected virtual bool HandleSpaceKey()
Returns:

bool

Returns a value indicating whether event should be handled or not.

Handle the spin of the value.

C#
protected virtual void HandleSpin(int position, bool? forwardSpin)
Parameters:positionint

Position of spin.

forwardSpinbool?

Direction of spin.

Handles the spin when no mask.

C#
protected virtual void HandleSpinNoMask(bool isUp)
Parameters:isUpbool

Handles the Subtract key.

C#
protected virtual bool HandleSubstractKey()
Returns:

bool

Returns a value indicating whether event should be handled or not.

Handles the tab key when no mask.

C#
protected virtual bool HandleTabKeyNoMask()
Returns:

bool

Handles the key press of an Unknown key with a specific key code.

C#
protected virtual bool HandleUnknownKeyOverride(int keyCode)
Parameters:keyCodeint

Key's key code.

Returns:

bool

Returns true if the key should not be processed.

Inserts a new character when no mask.

C#
protected virtual void InsertCharNoMask(char character)
Parameters:characterchar

Gets a value indicating whether the char is valid when no mask.

C#
protected virtual bool IsCharValid(char character)
Parameters:charactercharReturns:

bool

Performs validation on the masked text.

C#
protected virtual MaskValidationResult IsMaskValidOverride()
Returns:

MaskValidationResult

Returns validation result information.

Checks whether a specific character is a placeholder.

C#
protected virtual bool IsPlaceholder(char character)
Parameters:characterchar

The character to be checked.

Returns:

bool

Returns true if the character is a placeholder.

Checks whether a specific index is a placeholder.

C#
protected virtual bool IsPlaceholder(int index)
Parameters:indexint

The index to be checked.

Returns:

bool

Returns true if the string is a placeholder.

Checks whether a specific string is a placeholder.

C#
protected virtual bool IsPlaceholder(string value)
Parameters:valuestring

The string to be checked.

Returns:

bool

Returns true if the string is a placeholder.

Checks whether a specific character is a separator.

C#
protected virtual bool IsSeparator(char character, out Separator separator)
Parameters:characterchar

The character to be checked.

separatorSeparator

Returns the separator that the character represents.

Returns:

bool

Returns true if the character is a separator.

Checks whether a specific character is a separator.

C#
protected virtual bool IsSeparator(char character)
Parameters:characterchar

The character to be checked.

Returns:

bool

Returns true if the character is a separator.

Checks whether a specified string is a separator.

C#
protected virtual bool IsSeparator(string value, out Separator separator)
Parameters:valuestring

The string to be checked.

separatorSeparator

Returns the separator that the string represents.

Returns:

bool

Returns true if the character is a separator.

Checks whether a specified string is a separator.

C#
protected virtual bool IsSeparator(string value)
Parameters:valuestring

The string to be checked.

Returns:

bool

Returns true if the string is a separator.

Gets a value indicating whether a char is a separator when no mask.

C#
protected virtual bool IsSeparatorNoMask(char character)
Parameters:charactercharReturns:

bool

Moves characters to the left in Currency and Numeric Input.

C#
protected virtual void MoveCharactersInInsertBehavior(ref int position, char inputSymbol, bool forward)
Parameters:positionintinputSymbolcharforwardbool

Moves a group characters from the specified position to the left (forward) or right (backward) one position from the last Placeholder.

C#
protected virtual void MoveCharactersInInsertBehaviorOverride(ref int position, char character, bool forward)
Parameters:positionint

The position from which the move has to be done.

characterchar

The character input at this position.

forwardbool

The direction of the moving.

Remarks:

The method expects the text after the move to the set to the internal TextBox.

Handles ApplicationCommand.Cut execution.

C#
protected void OnApplicationCut(object sender, ExecutedRoutedEventArgs e)
Parameters:senderobjecteExecutedRoutedEventArgs

Handles ApplicationCommand.Paste execution.

C#
protected void OnApplicationPaste(object sender, ExecutedRoutedEventArgs e)
Parameters:senderobjecteExecutedRoutedEventArgs
C#
public override void OnApplyTemplate()

Creates automation peer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Returns the automation peer.

Executed when the Culture changes.

C#
protected virtual void OnCultureChanged()

Called when control is loaded.

C#
protected virtual void OnLoadedOverride(object sender, RoutedEventArgs e)
Parameters:senderobject

The sender.

eRoutedEventArgs

The RoutedEventArgs instance containing the event data.

When the mouse enters the control.

C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

Mouse event args.

When the mouse leaves the control.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

Mouse event args.

Handles the MouseWheel.

C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

Event args of the MouseWheel.

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.

C#
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

Executes when the focus is obtained.

C#
protected virtual int OnSelectionOnFocus(SelectionOnFocus selectionOnFocus)
Parameters:selectionOnFocusSelectionOnFocus

The selection on focus.

Returns:

int

Returns the selection start to be set when the focus is obtained.

Called when the control is unloaded.

C#
protected virtual void OnUnloadedOverride(object sender, RoutedEventArgs e)
Parameters:senderobject

The sender.

eRoutedEventArgs

The RoutedEventArgs instance containing the event data.

Executed when the Value property changes.

C#
protected static void OnValueChangedBase(DependencyObject d, DependencyPropertyChangedEventArgs args, bool processValueChanged)
Parameters:dDependencyObject

The owner of the value.

argsDependencyPropertyChangedEventArgs

The changed args.

processValueChangedbool

True is ProcessValueChanged should be called.

Parses the Mask property and sets the MaskedText.

C#
protected abstract string ParseMask()
Returns:

string

Returns the parsed Mask.

Process the input when a key has been pressed.

C#
protected virtual void ProcessChar(char inputSymbol)
Parameters:inputSymbolchar

Removes number of characters from the internal text when no mask.

C#
protected virtual void Remove(int start, int length, bool checkPositions = true)
Parameters:startint

The starting index.

lengthint

The length.

checkPositionsbool

True, if validation check should be performed on the removed positions.

Replaces a char when no mask.

C#
protected virtual void ReplaceChar(StringBuilder text, ref int position)
Parameters:textStringBuilder

The text builder.

positionint

The position of the char.

When BackSpace or Delete are pressed, replaces the current char with PlaceHolder.

C#
protected virtual void ReplacePositionWithPlaceholder(int position, bool useSnapshot, bool forward)
Parameters:positionintuseSnapshotboolforwardbool

Resets the theme.

C#
public void ResetTheme()

Selects the whole text.

C#
public void SelectAll()

Sets the DefaultStyleKey for the control.

C#
protected virtual void SetDefaultStyleKey()

Sets the offset from the right.

C#
protected virtual void SetFromRightOffset(int offset)
Parameters:offsetint

Method that sets predefined separators.

C#
protected virtual void SetSeparators(params Separator[] separatorsArray)
Parameters:separatorsArraySeparator[]

Array of separators to be set.

Checks whether a specified string starts with a separator.

C#
protected virtual bool StartsWithSeparator(StringBuilder text, bool forward, out Separator separator, ref int offset)
Parameters:textStringBuilder

The string builder to search in.

forwardbool

Direction of the search - true for forward, false for backward.

separatorSeparator

The found separator.

offsetint

The offset that the search begins from.

Returns:

bool

Returns true if the string starts with a separator.

Checks whether a specified string starts with a separator.

C#
protected virtual bool StartsWithSeparator(StringBuilder text, bool forward, out Separator separator)
Parameters:textStringBuilder

The string builder to search in.

forwardbool

Direction of the search - true for forward, false for backward.

separatorSeparator

The found separator.

Returns:

bool

Returns true if the string starts with a separator.

Trims a specified string from certain characters.

C#
protected static string TrimTextStart(string text, params char[] trimCharacters)
Parameters:textstring

The text to be trimmed.

trimCharacterschar[]

The characters to be trimmed from the text.

Returns:

string

Returns the trimmed text.

Forces updates of the EditableTextEnd and EditableTextStart properties.

C#
protected void UpdateEditableTextEndPositions()

Updates the EditableTextEnd and EditableTextStart properties.

C#
protected virtual void UpdateEditableTextEndPositionsOverride(ref int start, ref int end)
Parameters:startintendint

Performs a pre-value changing checking whether the inherited control allows the ValueChanging(ed) events to be raised.

C#
protected abstract bool ValueChangingOverride(RoutedEventArgs args)
Parameters:argsRoutedEventArgsReturns:

bool

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

Occurs when the value is changed.

C#
public event EventHandler<RadRoutedEventArgs> ValueChanged

Occurs before the value is changed.

C#
public event EventHandler<RadMaskedInputValueChangingEventArgs> ValueChanging
In this article
DefinitionConstructorsRadMaskedInputBase()FieldsAcceptsReturnPropertyAddSignKeyAllowInvalidValuesPropertyClearButtonStylePropertyClearCommandPropertyCopyCommandPropertyCulturePropertyCutCommandPropertyDecimalCommaKeyDecimalPointKeyDisplayErrorMessagePropertyEmptyContentPropertyEmptyContentTemplatePropertyErrorMessagePropertyErrorMessageTemplatePropertyFormatStringPropertyInputBehaviorPropertyIsClearButtonVisiblePropertyIsLastPositionEditablePropertyIsMaskValidPropertyIsReadOnlyPropertyMaskPropertyNegativeSignKeyOriginalValuePropertyPasteCommandPropertyPlaceholderPropertySectionsNavigationModePropertySelectionOnFocusPropertySpinModePropertyTextBoxStylePropertyTextModePropertyTextPropertyUpdateValueEventPropertyValueChangedEventValueChangingEventValueToTextConverterPropertyPropertiesAcceptsReturnAllowedDateTimeTokensAllowedModifierTokensAllowedNumericTokensAllowInvalidValuesBuilderClearButtonStyleClearCommandCopyCommandCultureCutCommandDisplayErrorMessageEditableTextEndEditableTextLengthEditableTextStartEmptyContentEmptyContentTemplateErrorMessageErrorMessageTemplateEscapedPositionsFormatStringInputBehaviorInputBehaviorResolvedIsClearButtonVisibleIsLastPositionEditableIsMaskValidIsReadOnlyIsRevertingValueIsUsingOneWayBindingIsValueChangingFromInternalIsValueInternalSyncLiteralPositionsMaskMaskedTextResolvedMaskResolvedOriginalValuePasteCommandPlaceholderSectionsNavigationModeSelectionLengthSelectionOnFocusSelectionStartSeparatorsSpinModeTextTextBoxStyleTextModeUpdateValueEventUseBaseNavigationValueToTextConverterMethodsCallSpin(bool)CanModifyChar(char)CanReplaceChar(char)CheckForDataValidationErrors(DependencyProperty, ref MaskValidationResult)ClearSelectionNoMask()CoerceDisplayTextOverride()CoerceImeInputString(string)CoerceInternalValueFromStronglyTypeValueOverride()CoerceStronglyTypeValueFromInternalValueOverride()CoerceTextInternalOverride(ref int)CoerceTextOverride(ref int)CoerceValueOverride()CopyBinding(Binding)FindNextAvailablePosition(bool, int)FindNextSeparatorPosition(bool, int, out Separator)FindNextSeparatorPosition(int)FindPreviousAvailablePositionNoMask()FindPreviousSeparatorPosition(int)GetRightOffset()GetValidCharOverride(char, ref int, bool?, out bool)HandleBackKeyNoMask()HandleBackKeyWithMask()HandleBackKeyWithMaskSelected()HandleClearOverride()HandleDeleteKeyNoMask()HandleDivideKey()HandleEnterKey()HandleLeftKey()HandleMultiplyKey()HandlePaste()HandlePasteNoMask(object, out object)HandlePasteOverride(object, out object)HandleSpaceKey()HandleSpin(int, bool?)HandleSpinNoMask(bool)HandleSubstractKey()HandleTabKeyNoMask()HandleUnknownKeyOverride(int)InsertCharNoMask(char)IsCharValid(char)IsMaskValidOverride()IsPlaceholder(char)IsPlaceholder(int)IsPlaceholder(string)IsSeparator(char, out Separator)IsSeparator(char)IsSeparator(string, out Separator)IsSeparator(string)IsSeparatorNoMask(char)MoveCharactersInInsertBehavior(ref int, char, bool)MoveCharactersInInsertBehaviorOverride(ref int, char, bool)OnApplicationCut(object, ExecutedRoutedEventArgs)OnApplicationPaste(object, ExecutedRoutedEventArgs)OnApplyTemplate()OnCreateAutomationPeer()OnCultureChanged()OnLoadedOverride(object, RoutedEventArgs)OnMouseEnter(MouseEventArgs)OnMouseLeave(MouseEventArgs)OnMouseWheel(MouseWheelEventArgs)OnPreviewKeyDown(KeyEventArgs)OnSelectionOnFocus(SelectionOnFocus)OnUnloadedOverride(object, RoutedEventArgs)OnValueChangedBase(DependencyObject, DependencyPropertyChangedEventArgs, bool)ParseMask()ProcessChar(char)Remove(int, int, bool)ReplaceChar(StringBuilder, ref int)ReplacePositionWithPlaceholder(int, bool, bool)ResetTheme()SelectAll()SetDefaultStyleKey()SetFromRightOffset(int)SetSeparators(params Separator[])StartsWithSeparator(StringBuilder, bool, out Separator, ref int)StartsWithSeparator(StringBuilder, bool, out Separator)TrimTextStart(string, params char[])UpdateEditableTextEndPositions()UpdateEditableTextEndPositionsOverride(ref int, ref int)ValueChangingOverride(RoutedEventArgs)EventsValueChangedValueChanging
Not finding the help you need?
Contact Support