Represents the RadMaskedNumericInput control.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
[TelerikToolboxCategory("Input")]
[Themable]
public class RadMaskedNumericInput : RadMaskedInputBase
Inheritance: objectRadMaskedInputBaseRadMaskedNumericInput
Inherited Members
Constructors
Initializes a new instance of the RadMaskedNumericInput class.
public RadMaskedNumericInput()
Fields
AllowSkipPlaceholdersProperty
DependencyProperty
Identifies the AllowSkipPlaceholders dependency property.
public static readonly DependencyProperty AllowSkipPlaceholdersProperty
AutoFillNumberGroupSeparatorsProperty
DependencyProperty
Identifies the AutoFillNumberGroupSeparators dependency property.
public static readonly DependencyProperty AutoFillNumberGroupSeparatorsProperty
AutoFillZerosProperty
DependencyProperty
Identifies the AutoFillZeros dependency property.
public static readonly DependencyProperty AutoFillZerosProperty
ValueProperty
DependencyProperty
Identifies the Value dependency property.
public static readonly DependencyProperty ValueProperty
Properties
Gets or sets whether input can skip placeholders.
public bool AllowSkipPlaceholders { get; set; }
Gets or sets whether number group separators are auto filled in the mask.
public bool AutoFillNumberGroupSeparators { get; set; }
Gets or sets whether trailing zeros should be auto filled.
public bool AutoFillZeros { get; set; }
The Decimal separator for the current culture.
protected Separator DecimalSeparator { get; set; }
Gets or sets the resolved InputBehavior.
protected override InputBehavior InputBehaviorResolved { get; }
Overrides:
Gets or sets whether the number is negative. IsNegative returns True for negative nulls too. In no-masked scenarios, "()", "-" are treated as negative nulls.
protected virtual bool IsNegativeValue { get; set; }
Gets or sets whether the number is percentage.
protected bool IsPercentageValue { get; set; }
The Negative symbol for the current culture.
protected Separator NegativeSign { get; set; }
The Number separator for the current culture.
protected Separator NumberSeparator { get; set; }
The Percentage symbol.
protected Separator PercentageSign { get; set; }
Methods
Clears the selection when no mask.
protected override void ClearSelectionNoMask()
Overrides:
The text has changed and the DisplayText has to be coerced against the Text.
protected override string CoerceDisplayTextOverride()
Returns the display text.
Overrides:
Coerces the ValueInternal property from the Value property.
protected override void CoerceInternalValueFromStronglyTypeValueOverride()
Overrides:
Coerces the Value property from the ValueInternal property.
protected override void CoerceStronglyTypeValueFromInternalValueOverride()
Overrides:
The text has changed and the value has to be coerced against the text.
protected override bool CoerceValueOverride()
Returns true if the value can be coerced.
Overrides:
Gets the offset from the right.
Gets the valid char for a position.
protected override string GetValidCharOverride(char character, ref int position, bool? forwardSpin, out bool isValid)
The character to be validated.
positionintPosition in the MaskedText to validate.
forwardSpinbool?True if a forward spin is applied, false for backward spin, null for no spin.
isValidboolTrue if the character is valid for this position.
Returns:Returns the result valid character for the specified position.
Overrides:
Handles the Back key when no mask.
protected override void HandleBackKeyNoMask()
Overrides:
Called, when the Clear command is invoked.
protected override void HandleClearOverride()
Overrides:
Handles the Divide key.
protected override bool HandleDivideKey()
Returns a value indicating whether event should be handled or not.
Overrides:
Handles the left key down.
protected override void HandleLeftKey()
Overrides:
Handles the Multiply key.
protected override bool HandleMultiplyKey()
Returns a value indicating whether event should be handled or not.
Overrides:
Handles the spin when no mask.
Handles the Subtract key.
protected override bool HandleSubstractKey()
Returns a value indicating whether event should be handled or not.
Overrides:
Inserts a new character when no mask.
Inserts number group separators in the mask.
Moves a group characters from the specified position to the left one position from the last Placeholder.
protected override void MoveCharactersInInsertBehaviorOverride(ref int position, char character, bool forward)
The position from which the move has to be done.
charactercharThe character input at this position.
forwardboolThe direction of the moving.
Overrides:
The method expects the text after the move to the set to the internal TextBox.
Executed when the Culture changes.
protected override void OnCultureChanged()
Overrides:
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Executes when the focus is obtained.
protected override int OnSelectionOnFocus(SelectionOnFocus selectionOnFocus)
The selection on focus.
Returns:Returns the selection start to be set when the focus is obtained.
Overrides:
Parses the Mask property and sets the MaskedText.
Replaces a char when no mask.
protected override void ReplaceChar(StringBuilder text, ref int position)
The text builder.
positionintThe position of the char.
Overrides:
Sets the offset from the right.
Toggles the visibility of the Negative symbol.
protected void ToggleNegativeSignKey()
Performs a pre-value changing checking whether the inherited control allows the ValueChanging(ed) events to be raised.
protected override bool ValueChangingOverride(RoutedEventArgs args)
Returns a boolean flag whether the value change has to be handled or not.
Overrides:
If false is returns, the value change proceeds. If true is returned, the update is terminated.