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
public MaskedInputExtensions()
Fields
AllowMinusOnNullValueProperty
DependencyProperty
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.
public static readonly DependencyProperty AllowMinusOnNullValueProperty
AllowMinusOnZeroValueProperty
DependencyProperty
Identifies the AllowMinusOnZeroValue dependency property. If set to false minus is not allowed before value of 0.
public static readonly DependencyProperty AllowMinusOnZeroValueProperty
AllowNullProperty
DependencyProperty
Identifies the AllowNull dependency property.
public static readonly DependencyProperty AllowNullProperty
CaretToEndOfTextOnFocusProperty
DependencyProperty
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.
public static readonly DependencyProperty CaretToEndOfTextOnFocusProperty
CoerceToMaximumProperty
DependencyProperty
Identifies the CoerceToMaximum attached property.
public static readonly DependencyProperty CoerceToMaximumProperty
IsEditorTabStopProperty
DependencyProperty
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.
public static readonly DependencyProperty IsEditorTabStopProperty
MaximumProperty
DependencyProperty
Identifies the Maximum dependency property.
public static readonly DependencyProperty MaximumProperty
MaxTextLengthProperty
DependencyProperty
Identifies the MaxTextLength dependency property.
public static readonly DependencyProperty MaxTextLengthProperty
MinimumProperty
DependencyProperty
Identifies the Minimum dependency property.
public static readonly DependencyProperty MinimumProperty
MinTextLengthProperty
DependencyProperty
Identifies the MinTextLength dependency property.
public static readonly DependencyProperty MinTextLengthProperty
RestrictInvalidTextProperty
DependencyProperty
Identifies the RestrictInvalidText dependency property. If set to true, then the display text will be restricted and will not be updated with invalid values.
public static readonly DependencyProperty RestrictInvalidTextProperty
SelectionStartOnSignChangedProperty
DependencyProperty
Identifies the SelectionStartOnSignChanged dependency property.
public static readonly DependencyProperty SelectionStartOnSignChangedProperty
UseCultureDigitsProperty
DependencyProperty
Identifies the UseCultureDigits dependency property.
public static readonly DependencyProperty UseCultureDigitsProperty
Methods
Gets the value of AllowMinusOnNullValue attached property. This property is designed only for No-Masked Numeric and Currency Inputs.
public static bool GetAllowMinusOnNullValue(DependencyObject obj)
Gets the value of AllowMinusOnZeroValue attached property.
public static bool GetAllowMinusOnZeroValue(DependencyObject obj)
Gets whether null values are allowed.
public static bool GetAllowNull(DependencyObject obj)
Gets the value of CaretToEndOfTextOnFocus attached property.
public static bool GetCaretToEndOfTextOnFocus(DependencyObject obj)
Gets whether the entered value should be coerced to the maximum value.
public static bool GetCoerceToMaximum(DependencyObject obj)
Returns the coerced maximum value.
Gets the IsEditorTabStop property.
public static bool GetIsEditorTabStop(DependencyObject obj)
Gets the maximum value that can be input.
public static object GetMaximum(DependencyObject obj)
Gets the maximum text length required.
public static int GetMaxTextLength(DependencyObject obj)
Gets the minimum value that can be input.
public static object GetMinimum(DependencyObject obj)
Returns the minimum value.
Gets the minimum text length required.
public static int GetMinTextLength(DependencyObject obj)
Gets whether invalid text should be restricted.
public static bool GetRestrictInvalidText(DependencyObject obj)
Gets the current SelectionStartOnSignChanged behavior.
public static SelectionStartOnSignChanged GetSelectionStartOnSignChanged(DependencyObject obj)
Retrieves a value indicating whether the current culture's digits should be used in the masked input.
public static bool GetUseCultureDigits(DependencyObject obj)
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.
public static void SetAllowMinusOnNullValue(DependencyObject obj, bool value)
Sets the value of AllowMinusOnZeroValue attached property.
public static void SetAllowMinusOnZeroValue(DependencyObject obj, bool value)
Sets whether null values are allowed.
public static void SetAllowNull(DependencyObject obj, bool value)
Sets the value of CaretToEndOfTextOnFocus attached property.
public static void SetCaretToEndOfTextOnFocus(DependencyObject obj, bool value)
Sets whether the entered value should be coerced to the maximum value.
public static void SetCoerceToMaximum(DependencyObject obj, bool value)
Sets the IsEditorTabStop property.
public static void SetIsEditorTabStop(DependencyObject obj, bool value)
Sets the maximum value that can be input.
public static void SetMaximum(DependencyObject obj, object value)
Sets the minimum text length required.
public static void SetMaxTextLength(DependencyObject obj, int value)
Sets the minimum value that can be input.
public static void SetMinimum(DependencyObject obj, object value)
Sets the minimum text length required.
public static void SetMinTextLength(DependencyObject obj, int value)
Sets whether invalid text should be restricted.
public static void SetRestrictInvalidText(DependencyObject obj, bool value)
Sets the current SelectionStartOnSignChanged behavior.
public static void SetSelectionStartOnSignChanged(DependencyObject obj, SelectionStartOnSignChanged value)
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.
Sets a value indicating whether the current culture's digits should be used in the masked input.
public static void SetUseCultureDigits(DependencyObject obj, bool value)
Validates the masked input extensions.
public static void Validate(RadMaskedInputBase inputControl)
The control to validate.