ClassMaskedInputExtensions
A class representing value property extensions for the RadMaskedInput controls.
Definition
Namespace:Telerik.Windows.Controls.MaskedInput
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public class MaskedInputExtensions : DependencyObject
Inheritance: objectMaskedInputExtensions
Constructors
MaskedInputExtensions()
Declaration
public MaskedInputExtensions()
Fields
AllowMinusOnNullValueProperty
Identifies the AllowMinusOnNullValue dependency property. If set to true minus will be allowed when the value in Null. Property is designed only for no-masked scenarios in NumericInput and CurrencyInput.
Declaration
public static readonly DependencyProperty AllowMinusOnNullValueProperty
Field Value
DependencyProperty
AllowMinusOnZeroValueProperty
Identifies the AllowMinusOnZeroValue dependency property. If set to false minus is not allowed before value of 0.
Declaration
public static readonly DependencyProperty AllowMinusOnZeroValueProperty
Field Value
DependencyProperty
AllowNullProperty
Identifies the AllowNull dependency property.
Declaration
public static readonly DependencyProperty AllowNullProperty
Field Value
DependencyProperty
CaretToEndOfTextOnFocusProperty
Identifies the CaretToEndOfTextOnFocus dependency property. Should be used in MaskedTextInput control only. When set to true, the caret will go to the end of text when receiving focus, no matter the value of SelectionOnFocus property.
Declaration
public static readonly DependencyProperty CaretToEndOfTextOnFocusProperty
Field Value
DependencyProperty
CoerceToMaximumProperty
Identifies the CoerceToMaximum attached property.
Declaration
public static readonly DependencyProperty CoerceToMaximumProperty
Field Value
DependencyProperty
IsEditorTabStopProperty
Identifies the IsEditorTabStop dependency property. If set to false the TextBox in the Template of the MaskedInputControl won't receive focus when tabbing with tab key.
Declaration
public static readonly DependencyProperty IsEditorTabStopProperty
Field Value
DependencyProperty
MaxTextLengthProperty
Identifies the MaxTextLength dependency property.
Declaration
public static readonly DependencyProperty MaxTextLengthProperty
Field Value
DependencyProperty
MaximumProperty
Identifies the Maximum dependency property.
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
DependencyProperty
MinTextLengthProperty
Identifies the MinTextLength dependency property.
Declaration
public static readonly DependencyProperty MinTextLengthProperty
Field Value
DependencyProperty
MinimumProperty
Identifies the Minimum dependency property.
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
DependencyProperty
RestrictInvalidTextProperty
Identifies the RestrictInvalidText dependency property. If set to true, then the display text will be restricted and will not be updated with invalid values.
Declaration
public static readonly DependencyProperty RestrictInvalidTextProperty
Field Value
DependencyProperty
SelectionStartOnSignChangedProperty
Identifies the SelectionStartOnSignChanged dependency property.
Declaration
public static readonly DependencyProperty SelectionStartOnSignChangedProperty
Field Value
DependencyProperty
UseCultureDigitsProperty
Identifies the UseCultureDigits dependency property.
Declaration
public static readonly DependencyProperty UseCultureDigitsProperty
Field Value
DependencyProperty
Methods
GetAllowMinusOnNullValue(DependencyObject)
Gets the value of AllowMinusOnNullValue attached property. This property is designed only for No-Masked Numeric and Currency Inputs.
Declaration
public static bool GetAllowMinusOnNullValue(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetAllowMinusOnZeroValue(DependencyObject)
Gets the value of AllowMinusOnZeroValue attached property.
Declaration
public static bool GetAllowMinusOnZeroValue(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetAllowNull(DependencyObject)
Gets whether null values are allowed.
Declaration
public static bool GetAllowNull(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetCaretToEndOfTextOnFocus(DependencyObject)
Gets the value of CaretToEndOfTextOnFocus attached property.
Declaration
public static bool GetCaretToEndOfTextOnFocus(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetCoerceToMaximum(DependencyObject)
Gets whether the entered value should be coerced to the maximum value.
Declaration
public static bool GetCoerceToMaximum(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
Returns the coerced maximum value.
GetIsEditorTabStop(DependencyObject)
Gets the IsEditorTabStop property.
Declaration
public static bool GetIsEditorTabStop(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetMaxTextLength(DependencyObject)
Gets the maximum text length required.
Declaration
public static int GetMaxTextLength(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetMaximum(DependencyObject)
Gets the maximum value that can be input.
Declaration
public static object GetMaximum(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetMinTextLength(DependencyObject)
Gets the minimum text length required.
Declaration
public static int GetMinTextLength(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetMinimum(DependencyObject)
Gets the minimum value that can be input.
Declaration
public static object GetMinimum(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
Returns the minimum value.
GetRestrictInvalidText(DependencyObject)
Gets whether invalid text should be restricted.
Declaration
public static bool GetRestrictInvalidText(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetSelectionStartOnSignChanged(DependencyObject)
Gets the current SelectionStartOnSignChanged behavior.
Declaration
public static SelectionStartOnSignChanged GetSelectionStartOnSignChanged(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetUseCultureDigits(DependencyObject)
Retrieves a value indicating whether the current culture's digits should be used in the masked input.
Declaration
public static bool GetUseCultureDigits(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
SetAllowMinusOnNullValue(DependencyObject, bool)
Sets the value of AllowMinusOnNullValue attached property. This property is designed only for No-Masked Numeric and Currency Inputs. Set is to true in order to allow inserting minus on null value.
Declaration
public static void SetAllowMinusOnNullValue(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value
SetAllowMinusOnZeroValue(DependencyObject, bool)
Sets the value of AllowMinusOnZeroValue attached property.
Declaration
public static void SetAllowMinusOnZeroValue(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value
SetAllowNull(DependencyObject, bool)
Sets whether null values are allowed.
Declaration
public static void SetAllowNull(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value
SetCaretToEndOfTextOnFocus(DependencyObject, bool)
Sets the value of CaretToEndOfTextOnFocus attached property.
Declaration
public static void SetCaretToEndOfTextOnFocus(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value
SetCoerceToMaximum(DependencyObject, bool)
Sets whether the entered value should be coerced to the maximum value.
Declaration
public static void SetCoerceToMaximum(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value
SetIsEditorTabStop(DependencyObject, bool)
Sets the IsEditorTabStop property.
Declaration
public static void SetIsEditorTabStop(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value
SetMaxTextLength(DependencyObject, int)
Sets the minimum text length required.
Declaration
public static void SetMaxTextLength(DependencyObject obj, int value)
Parameters
obj
DependencyObject
value
SetMaximum(DependencyObject, object)
Sets the maximum value that can be input.
Declaration
public static void SetMaximum(DependencyObject obj, object value)
Parameters
obj
DependencyObject
value
SetMinTextLength(DependencyObject, int)
Sets the minimum text length required.
Declaration
public static void SetMinTextLength(DependencyObject obj, int value)
Parameters
obj
DependencyObject
value
SetMinimum(DependencyObject, object)
Sets the minimum value that can be input.
Declaration
public static void SetMinimum(DependencyObject obj, object value)
Parameters
obj
DependencyObject
value
SetRestrictInvalidText(DependencyObject, bool)
Sets whether invalid text should be restricted.
Declaration
public static void SetRestrictInvalidText(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value
SetSelectionStartOnSignChanged(DependencyObject, SelectionStartOnSignChanged)
Sets the current SelectionStartOnSignChanged behavior.
Declaration
public static void SetSelectionStartOnSignChanged(DependencyObject obj, SelectionStartOnSignChanged value)
Parameters
obj
DependencyObject
value
Remarks
The behavior can be Beginning or Unchanged. When Beginning is used, the change of the sign in the numeric input (+ or -) will move the caret to the start of the input.
SetUseCultureDigits(DependencyObject, bool)
Sets a value indicating whether the current culture's digits should be used in the masked input.
Declaration
public static void SetUseCultureDigits(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value
Validate(RadMaskedInputBase)
Validates the masked input extensions.
Declaration
public static void Validate(RadMaskedInputBase inputControl)
Parameters
inputControl
The control to validate.