Class
MaskedInputExtensions

A class representing value property extensions for the RadMaskedInput controls.

Definition

Namespace:Telerik.Windows.Controls.MaskedInput

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class MaskedInputExtensions : DependencyObject

Inheritance: objectMaskedInputExtensions

Constructors

MaskedInputExtensions()

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public static readonly DependencyProperty AllowMinusOnZeroValueProperty

Field Value

DependencyProperty

AllowNullProperty

Identifies the AllowNull dependency property.

Declaration

cs-api-definition
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

cs-api-definition
public static readonly DependencyProperty CaretToEndOfTextOnFocusProperty

Field Value

DependencyProperty

CoerceToMaximumProperty

Identifies the CoerceToMaximum attached property.

Declaration

cs-api-definition
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

cs-api-definition
public static readonly DependencyProperty IsEditorTabStopProperty

Field Value

DependencyProperty

MaxTextLengthProperty

Identifies the MaxTextLength dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxTextLengthProperty

Field Value

DependencyProperty

MaximumProperty

Identifies the Maximum dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaximumProperty

Field Value

DependencyProperty

MinTextLengthProperty

Identifies the MinTextLength dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinTextLengthProperty

Field Value

DependencyProperty

MinimumProperty

Identifies the Minimum dependency property.

Declaration

cs-api-definition
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

cs-api-definition
public static readonly DependencyProperty RestrictInvalidTextProperty

Field Value

DependencyProperty

SelectionStartOnSignChangedProperty

Identifies the SelectionStartOnSignChanged dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionStartOnSignChangedProperty

Field Value

DependencyProperty

UseCultureDigitsProperty

Identifies the UseCultureDigits dependency property.

Declaration

cs-api-definition
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

cs-api-definition
public static bool GetAllowMinusOnNullValue(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

GetAllowMinusOnZeroValue(DependencyObject)

Gets the value of AllowMinusOnZeroValue attached property.

Declaration

cs-api-definition
public static bool GetAllowMinusOnZeroValue(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

GetAllowNull(DependencyObject)

Gets whether null values are allowed.

Declaration

cs-api-definition
public static bool GetAllowNull(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

GetCaretToEndOfTextOnFocus(DependencyObject)

Gets the value of CaretToEndOfTextOnFocus attached property.

Declaration

cs-api-definition
public static bool GetCaretToEndOfTextOnFocus(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

GetCoerceToMaximum(DependencyObject)

Gets whether the entered value should be coerced to the maximum value.

Declaration

cs-api-definition
public static bool GetCoerceToMaximum(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

Returns the coerced maximum value.

GetIsEditorTabStop(DependencyObject)

Gets the IsEditorTabStop property.

Declaration

cs-api-definition
public static bool GetIsEditorTabStop(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

GetMaxTextLength(DependencyObject)

Gets the maximum text length required.

Declaration

cs-api-definition
public static int GetMaxTextLength(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

int

GetMaximum(DependencyObject)

Gets the maximum value that can be input.

Declaration

cs-api-definition
public static object GetMaximum(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

object

GetMinTextLength(DependencyObject)

Gets the minimum text length required.

Declaration

cs-api-definition
public static int GetMinTextLength(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

int

GetMinimum(DependencyObject)

Gets the minimum value that can be input.

Declaration

cs-api-definition
public static object GetMinimum(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

object

Returns the minimum value.

GetRestrictInvalidText(DependencyObject)

Gets whether invalid text should be restricted.

Declaration

cs-api-definition
public static bool GetRestrictInvalidText(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

GetSelectionStartOnSignChanged(DependencyObject)

Gets the current SelectionStartOnSignChanged behavior.

Declaration

cs-api-definition
public static SelectionStartOnSignChanged GetSelectionStartOnSignChanged(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

SelectionStartOnSignChanged

GetUseCultureDigits(DependencyObject)

Retrieves a value indicating whether the current culture's digits should be used in the masked input.

Declaration

cs-api-definition
public static bool GetUseCultureDigits(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

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

cs-api-definition
public static void SetAllowMinusOnNullValue(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetAllowMinusOnZeroValue(DependencyObject, bool)

Sets the value of AllowMinusOnZeroValue attached property.

Declaration

cs-api-definition
public static void SetAllowMinusOnZeroValue(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetAllowNull(DependencyObject, bool)

Sets whether null values are allowed.

Declaration

cs-api-definition
public static void SetAllowNull(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetCaretToEndOfTextOnFocus(DependencyObject, bool)

Sets the value of CaretToEndOfTextOnFocus attached property.

Declaration

cs-api-definition
public static void SetCaretToEndOfTextOnFocus(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetCoerceToMaximum(DependencyObject, bool)

Sets whether the entered value should be coerced to the maximum value.

Declaration

cs-api-definition
public static void SetCoerceToMaximum(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetIsEditorTabStop(DependencyObject, bool)

Sets the IsEditorTabStop property.

Declaration

cs-api-definition
public static void SetIsEditorTabStop(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetMaxTextLength(DependencyObject, int)

Sets the minimum text length required.

Declaration

cs-api-definition
public static void SetMaxTextLength(DependencyObject obj, int value)

Parameters

obj

DependencyObject

value

int

SetMaximum(DependencyObject, object)

Sets the maximum value that can be input.

Declaration

cs-api-definition
public static void SetMaximum(DependencyObject obj, object value)

Parameters

obj

DependencyObject

value

object

SetMinTextLength(DependencyObject, int)

Sets the minimum text length required.

Declaration

cs-api-definition
public static void SetMinTextLength(DependencyObject obj, int value)

Parameters

obj

DependencyObject

value

int

SetMinimum(DependencyObject, object)

Sets the minimum value that can be input.

Declaration

cs-api-definition
public static void SetMinimum(DependencyObject obj, object value)

Parameters

obj

DependencyObject

value

object

SetRestrictInvalidText(DependencyObject, bool)

Sets whether invalid text should be restricted.

Declaration

cs-api-definition
public static void SetRestrictInvalidText(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetSelectionStartOnSignChanged(DependencyObject, SelectionStartOnSignChanged)

Sets the current SelectionStartOnSignChanged behavior.

Declaration

cs-api-definition
public static void SetSelectionStartOnSignChanged(DependencyObject obj, SelectionStartOnSignChanged value)

Parameters

obj

DependencyObject

value

SelectionStartOnSignChanged

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

cs-api-definition
public static void SetUseCultureDigits(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

Validate(RadMaskedInputBase)

Validates the masked input extensions.

Declaration

cs-api-definition
public static void Validate(RadMaskedInputBase inputControl)

Parameters

inputControl

RadMaskedInputBase

The control to validate.

In this article
DefinitionConstructorsMaskedInputExtensions()FieldsAllowMinusOnNullValuePropertyAllowMinusOnZeroValuePropertyAllowNullPropertyCaretToEndOfTextOnFocusPropertyCoerceToMaximumPropertyIsEditorTabStopPropertyMaxTextLengthPropertyMaximumPropertyMinTextLengthPropertyMinimumPropertyRestrictInvalidTextPropertySelectionStartOnSignChangedPropertyUseCultureDigitsPropertyMethodsGetAllowMinusOnNullValue(DependencyObject)GetAllowMinusOnZeroValue(DependencyObject)GetAllowNull(DependencyObject)GetCaretToEndOfTextOnFocus(DependencyObject)GetCoerceToMaximum(DependencyObject)GetIsEditorTabStop(DependencyObject)GetMaxTextLength(DependencyObject)GetMaximum(DependencyObject)GetMinTextLength(DependencyObject)GetMinimum(DependencyObject)GetRestrictInvalidText(DependencyObject)GetSelectionStartOnSignChanged(DependencyObject)GetUseCultureDigits(DependencyObject)SetAllowMinusOnNullValue(DependencyObject, bool)SetAllowMinusOnZeroValue(DependencyObject, bool)SetAllowNull(DependencyObject, bool)SetCaretToEndOfTextOnFocus(DependencyObject, bool)SetCoerceToMaximum(DependencyObject, bool)SetIsEditorTabStop(DependencyObject, bool)SetMaxTextLength(DependencyObject, int)SetMaximum(DependencyObject, object)SetMinTextLength(DependencyObject, int)SetMinimum(DependencyObject, object)SetRestrictInvalidText(DependencyObject, bool)SetSelectionStartOnSignChanged(DependencyObject, SelectionStartOnSignChanged)SetUseCultureDigits(DependencyObject, bool)Validate(RadMaskedInputBase)
Not finding the help you need?
Contact Support