skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    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)

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)

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

Returns
System.Boolean

GetIsEditorTabStop(DependencyObject)

Gets the IsEditorTabStop property.

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

Returns
System.Boolean

GetMaximum(DependencyObject)

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

Returns
System.Object

GetMaxTextLength(DependencyObject)

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

Returns
System.Int32

GetMinimum(DependencyObject)

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

Returns
System.Object

GetMinTextLength(DependencyObject)

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

Returns
System.Int32

GetRestrictInvalidText(DependencyObject)

Gets the restrict invalid text.

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

The object.

Returns
System.Boolean

GetSelectionStartOnSignChanged(DependencyObject)

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

Returns
SelectionStartOnSignChanged

GetUseCultureDigits(DependencyObject)

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)

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)

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)

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

System.Object value

SetMaxTextLength(DependencyObject, Int32)

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

System.Int32 value

SetMinimum(DependencyObject, Object)

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

System.Object value

SetMinTextLength(DependencyObject, Int32)

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

System.Int32 value

SetRestrictInvalidText(DependencyObject, Boolean)

Sets the restrict invalid text.

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

The object.

System.Boolean value

If set to true [value].

SetSelectionStartOnSignChanged(DependencyObject, SelectionStartOnSignChanged)

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

SelectionStartOnSignChanged value

SetUseCultureDigits(DependencyObject, Boolean)

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.