skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class MaskedInputExtensions

A class representing value property extensions for the RadMaskedInput controls.

Inheritance
System.Object
MaskedInputExtensions
Namespace: Telerik.Windows.Controls.MaskedInput
Assembly: Telerik.Windows.Controls.Input.dll

Syntax

public class MaskedInputExtensions : DependencyObject

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
System.Windows.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
System.Windows.DependencyProperty

AllowNullProperty

Identifies the AllowNull dependency property.

Declaration
public static readonly DependencyProperty AllowNullProperty
Field Value
System.Windows.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
System.Windows.DependencyProperty

CoerceToMaximumProperty

Identifies the CoerceToMaximum attached property.

Declaration
public static readonly DependencyProperty CoerceToMaximumProperty
Field Value
System.Windows.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
System.Windows.DependencyProperty

MaximumProperty

Identifies the Maximum dependency property.

Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
System.Windows.DependencyProperty

MaxTextLengthProperty

Identifies the MaxTextLength dependency property.

Declaration
public static readonly DependencyProperty MaxTextLengthProperty
Field Value
System.Windows.DependencyProperty

MinimumProperty

Identifies the Minimum dependency property.

Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
System.Windows.DependencyProperty

MinTextLengthProperty

Identifies the MinTextLength dependency property.

Declaration
public static readonly DependencyProperty MinTextLengthProperty
Field Value
System.Windows.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
System.Windows.DependencyProperty

SelectionStartOnSignChangedProperty

Identifies the SelectionStartOnSignChanged dependency property.

Declaration
public static readonly DependencyProperty SelectionStartOnSignChangedProperty
Field Value
System.Windows.DependencyProperty

UseCultureDigitsProperty

Identifies the UseCultureDigits dependency property.

Declaration
public static readonly DependencyProperty UseCultureDigitsProperty
Field Value
System.Windows.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
System.Windows.DependencyObject obj

Returns
System.Boolean

GetAllowMinusOnZeroValue(DependencyObject)

Gets the value of AllowMinusOnZeroValue attached property.

Declaration
public static bool GetAllowMinusOnZeroValue(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Boolean

GetAllowNull(DependencyObject)

Gets whether null values are allowed.

Declaration
public static bool GetAllowNull(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Boolean

GetCaretToEndOfTextOnFocus(DependencyObject)

Gets the value of CaretToEndOfTextOnFocus attached property.

Declaration
public static bool GetCaretToEndOfTextOnFocus(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Boolean

GetCoerceToMaximum(DependencyObject)

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

Declaration
public static bool GetCoerceToMaximum(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Boolean

Returns the coerced maximum value.

GetIsEditorTabStop(DependencyObject)

Gets the IsEditorTabStop property.

Declaration
public static bool GetIsEditorTabStop(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Boolean

GetMaximum(DependencyObject)

Gets the maximum value that can be input.

Declaration
public static object GetMaximum(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Object

GetMaxTextLength(DependencyObject)

Gets the maximum text length required.

Declaration
public static int GetMaxTextLength(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Int32

GetMinimum(DependencyObject)

Gets the minimum value that can be input.

Declaration
public static object GetMinimum(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Object

Returns the minimum value.

GetMinTextLength(DependencyObject)

Gets the minimum text length required.

Declaration
public static int GetMinTextLength(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Int32

GetRestrictInvalidText(DependencyObject)

Gets whether invalid text should be restricted.

Declaration
public static bool GetRestrictInvalidText(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Boolean

GetSelectionStartOnSignChanged(DependencyObject)

Gets the current SelectionStartOnSignChanged behavior.

Declaration
public static SelectionStartOnSignChanged GetSelectionStartOnSignChanged(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
SelectionStartOnSignChanged

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
System.Windows.DependencyObject obj

Returns
System.Boolean

SetAllowMinusOnNullValue(DependencyObject, Boolean)

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
System.Windows.DependencyObject obj

System.Boolean value

SetAllowMinusOnZeroValue(DependencyObject, Boolean)

Sets the value of AllowMinusOnZeroValue attached property.

Declaration
public static void SetAllowMinusOnZeroValue(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

System.Boolean value

SetAllowNull(DependencyObject, Boolean)

Sets whether null values are allowed.

Declaration
public static void SetAllowNull(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

System.Boolean value

SetCaretToEndOfTextOnFocus(DependencyObject, Boolean)

Sets the value of CaretToEndOfTextOnFocus attached property.

Declaration
public static void SetCaretToEndOfTextOnFocus(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

System.Boolean value

SetCoerceToMaximum(DependencyObject, Boolean)

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

Declaration
public static void SetCoerceToMaximum(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

System.Boolean value

SetIsEditorTabStop(DependencyObject, Boolean)

Sets the IsEditorTabStop property.

Declaration
public static void SetIsEditorTabStop(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

System.Boolean value

SetMaximum(DependencyObject, Object)

Sets the maximum value that can be input.

Declaration
public static void SetMaximum(DependencyObject obj, object value)
Parameters
System.Windows.DependencyObject obj

System.Object value

SetMaxTextLength(DependencyObject, Int32)

Sets the minimum text length required.

Declaration
public static void SetMaxTextLength(DependencyObject obj, int value)
Parameters
System.Windows.DependencyObject obj

System.Int32 value

SetMinimum(DependencyObject, Object)

Sets the minimum value that can be input.

Declaration
public static void SetMinimum(DependencyObject obj, object value)
Parameters
System.Windows.DependencyObject obj

System.Object value

SetMinTextLength(DependencyObject, Int32)

Sets the minimum text length required.

Declaration
public static void SetMinTextLength(DependencyObject obj, int value)
Parameters
System.Windows.DependencyObject obj

System.Int32 value

SetRestrictInvalidText(DependencyObject, Boolean)

Sets whether invalid text should be restricted.

Declaration
public static void SetRestrictInvalidText(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

System.Boolean value

SetSelectionStartOnSignChanged(DependencyObject, SelectionStartOnSignChanged)

Sets the current SelectionStartOnSignChanged behavior.

Declaration
public static void SetSelectionStartOnSignChanged(DependencyObject obj, SelectionStartOnSignChanged value)
Parameters
System.Windows.DependencyObject obj

SelectionStartOnSignChanged 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, Boolean)

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
System.Windows.DependencyObject obj

System.Boolean value

Validate(RadMaskedInputBase)

Validates the masked input extensions.

Declaration
public static void Validate(RadMaskedInputBase inputControl)
Parameters
RadMaskedInputBase inputControl

The control to validate.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.