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

A class representing value property extensions for the RadMaskedInput controls.

Definition

Namespace:Telerik.Windows.Controls.MaskedInput

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public class MaskedInputExtensions : DependencyObject

Inheritance: objectMaskedInputExtensions

Constructors

C#
public MaskedInputExtensions()

Fields

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.

C#
public static readonly DependencyProperty AllowMinusOnNullValueProperty

Identifies the AllowMinusOnZeroValue dependency property. If set to false minus is not allowed before value of 0.

C#
public static readonly DependencyProperty AllowMinusOnZeroValueProperty

AllowNullProperty

DependencyProperty

Identifies the AllowNull dependency property.

C#
public static readonly DependencyProperty AllowNullProperty

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.

C#
public static readonly DependencyProperty CaretToEndOfTextOnFocusProperty

CoerceToMaximumProperty

DependencyProperty

Identifies the CoerceToMaximum attached property.

C#
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.

C#
public static readonly DependencyProperty IsEditorTabStopProperty

MaximumProperty

DependencyProperty

Identifies the Maximum dependency property.

C#
public static readonly DependencyProperty MaximumProperty

MaxTextLengthProperty

DependencyProperty

Identifies the MaxTextLength dependency property.

C#
public static readonly DependencyProperty MaxTextLengthProperty

MinimumProperty

DependencyProperty

Identifies the Minimum dependency property.

C#
public static readonly DependencyProperty MinimumProperty

MinTextLengthProperty

DependencyProperty

Identifies the MinTextLength dependency property.

C#
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.

C#
public static readonly DependencyProperty RestrictInvalidTextProperty

Identifies the SelectionStartOnSignChanged dependency property.

C#
public static readonly DependencyProperty SelectionStartOnSignChangedProperty

UseCultureDigitsProperty

DependencyProperty

Identifies the UseCultureDigits dependency property.

C#
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.

C#
public static bool GetAllowMinusOnNullValue(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Gets the value of AllowMinusOnZeroValue attached property.

C#
public static bool GetAllowMinusOnZeroValue(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Gets whether null values are allowed.

C#
public static bool GetAllowNull(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Gets the value of CaretToEndOfTextOnFocus attached property.

C#
public static bool GetCaretToEndOfTextOnFocus(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

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

C#
public static bool GetCoerceToMaximum(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Returns the coerced maximum value.

Gets the IsEditorTabStop property.

C#
public static bool GetIsEditorTabStop(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Gets the maximum value that can be input.

C#
public static object GetMaximum(DependencyObject obj)
Parameters:objDependencyObjectReturns:

object

Gets the maximum text length required.

C#
public static int GetMaxTextLength(DependencyObject obj)
Parameters:objDependencyObjectReturns:

int

Gets the minimum value that can be input.

C#
public static object GetMinimum(DependencyObject obj)
Parameters:objDependencyObjectReturns:

object

Returns the minimum value.

Gets the minimum text length required.

C#
public static int GetMinTextLength(DependencyObject obj)
Parameters:objDependencyObjectReturns:

int

Gets whether invalid text should be restricted.

C#
public static bool GetRestrictInvalidText(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Gets the current SelectionStartOnSignChanged behavior.

C#
public static SelectionStartOnSignChanged GetSelectionStartOnSignChanged(DependencyObject obj)
Parameters:objDependencyObjectReturns:

SelectionStartOnSignChanged

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

C#
public static bool GetUseCultureDigits(DependencyObject obj)
Parameters:objDependencyObjectReturns:

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.

C#
public static void SetAllowMinusOnNullValue(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

Sets the value of AllowMinusOnZeroValue attached property.

C#
public static void SetAllowMinusOnZeroValue(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

Sets whether null values are allowed.

C#
public static void SetAllowNull(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

Sets the value of CaretToEndOfTextOnFocus attached property.

C#
public static void SetCaretToEndOfTextOnFocus(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

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

C#
public static void SetCoerceToMaximum(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

Sets the IsEditorTabStop property.

C#
public static void SetIsEditorTabStop(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

Sets the maximum value that can be input.

C#
public static void SetMaximum(DependencyObject obj, object value)
Parameters:objDependencyObjectvalueobject

Sets the minimum text length required.

C#
public static void SetMaxTextLength(DependencyObject obj, int value)
Parameters:objDependencyObjectvalueint

Sets the minimum value that can be input.

C#
public static void SetMinimum(DependencyObject obj, object value)
Parameters:objDependencyObjectvalueobject

Sets the minimum text length required.

C#
public static void SetMinTextLength(DependencyObject obj, int value)
Parameters:objDependencyObjectvalueint

Sets whether invalid text should be restricted.

C#
public static void SetRestrictInvalidText(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

Sets the current SelectionStartOnSignChanged behavior.

C#
public static void SetSelectionStartOnSignChanged(DependencyObject obj, SelectionStartOnSignChanged value)
Parameters:objDependencyObjectvalueSelectionStartOnSignChanged
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.

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

C#
public static void SetUseCultureDigits(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

Validates the masked input extensions.

C#
public static void Validate(RadMaskedInputBase inputControl)
Parameters:inputControlRadMaskedInputBase

The control to validate.

In this article
DefinitionConstructorsMaskedInputExtensions()FieldsAllowMinusOnNullValuePropertyAllowMinusOnZeroValuePropertyAllowNullPropertyCaretToEndOfTextOnFocusPropertyCoerceToMaximumPropertyIsEditorTabStopPropertyMaximumPropertyMaxTextLengthPropertyMinimumPropertyMinTextLengthPropertyRestrictInvalidTextPropertySelectionStartOnSignChangedPropertyUseCultureDigitsPropertyMethodsGetAllowMinusOnNullValue(DependencyObject)GetAllowMinusOnZeroValue(DependencyObject)GetAllowNull(DependencyObject)GetCaretToEndOfTextOnFocus(DependencyObject)GetCoerceToMaximum(DependencyObject)GetIsEditorTabStop(DependencyObject)GetMaximum(DependencyObject)GetMaxTextLength(DependencyObject)GetMinimum(DependencyObject)GetMinTextLength(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)SetMaximum(DependencyObject, object)SetMaxTextLength(DependencyObject, int)SetMinimum(DependencyObject, object)SetMinTextLength(DependencyObject, int)SetRestrictInvalidText(DependencyObject, bool)SetSelectionStartOnSignChanged(DependencyObject, SelectionStartOnSignChanged)SetUseCultureDigits(DependencyObject, bool)Validate(RadMaskedInputBase)
Not finding the help you need?
Contact Support