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 UI for Xamarin

    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
    • Release History
  • Migrate to .NET MAUI
  • Support and Learning

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

    Productivity and Design Tools

    • Visual Studio Extensions
    • 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 RadMaskedInput

Represents a custom Xamarin.Forms.View implementation that may be used to input element and error text.

Inheritance
System.Object
RadContentView
RadMaskedInput
Inherited Members
RadContentView.ActualStyleClassProperty
RadContentView.OnBindingContextChanged()
RadContentView.OnMeasure(Double, Double)
RadContentView.ActualStyleClass
Namespace: Telerik.XamarinForms.Input
Assembly: Telerik.XamarinForms.Input.dll

Syntax

public class RadMaskedInput : RadContentView, IParentElement

Constructors

RadMaskedInput()

Initializes the RadMaskedInput.

Declaration
public RadMaskedInput()

Fields

BorderStyleProperty

Identifies the BorderStyle property.

Declaration
public static readonly BindableProperty BorderStyleProperty
Field Value
Xamarin.Forms.BindableProperty

DisplayedTextColorProperty

Identifies the DisplayedTextColor property.

Declaration
public static readonly BindableProperty DisplayedTextColorProperty
Field Value
Xamarin.Forms.BindableProperty

DisplayedTextFontProperty

Identifies the DisplayedTextFont property.

Declaration
public static readonly BindableProperty DisplayedTextFontProperty
Field Value
Xamarin.Forms.BindableProperty

DisplayedTextFontSizeProperty

Identifies the DisplayedTextFontSize property.

Declaration
public static readonly BindableProperty DisplayedTextFontSizeProperty
Field Value
Xamarin.Forms.BindableProperty

DisplayedTextProperty

Identifies the DisplayedText property.

Declaration
public static readonly BindableProperty DisplayedTextProperty
Field Value
Xamarin.Forms.BindableProperty

ErrorColorProperty

Identifies the ErrorColor property.

Declaration
public static readonly BindableProperty ErrorColorProperty
Field Value
Xamarin.Forms.BindableProperty

ErrorFontSizeProperty

Identifies the ErrorFontSize property.

Declaration
public static readonly BindableProperty ErrorFontSizeProperty
Field Value
Xamarin.Forms.BindableProperty

InputValueProperty

Identifies the InputValue property.

Declaration
public static readonly BindableProperty InputValueProperty
Field Value
Xamarin.Forms.BindableProperty

InvalidInputErrorTextProperty

Identifies the InvalidInputErrorText property.

Declaration
public static readonly BindableProperty InvalidInputErrorTextProperty
Field Value
Xamarin.Forms.BindableProperty

IsErrorTextVisibleProperty

Identifies the IsErrorTextVisible property.

Declaration
public static readonly BindableProperty IsErrorTextVisibleProperty
Field Value
Xamarin.Forms.BindableProperty

IsInputAcceptedProperty

Identifies the IsInputAccepted property.

Declaration
public static readonly BindableProperty IsInputAcceptedProperty
Field Value
Xamarin.Forms.BindableProperty

IsMaskFullProperty

Identifies the IsMaskFull property.

Declaration
public static readonly BindableProperty IsMaskFullProperty
Field Value
Xamarin.Forms.BindableProperty

KeyboardProperty

Identifies the Keyboard property.

Declaration
public static readonly BindableProperty KeyboardProperty
Field Value
Xamarin.Forms.BindableProperty

MaskProperty

Identifies the Mask property.

Declaration
public static readonly BindableProperty MaskProperty
Field Value
Xamarin.Forms.BindableProperty

MaskTypeProperty

Identifies the MaskType property.

Declaration
public static readonly BindableProperty MaskTypeProperty
Field Value
Xamarin.Forms.BindableProperty

PlaceholderProperty

Identifies the Placeholder property.

Declaration
public static readonly BindableProperty PlaceholderProperty
Field Value
Xamarin.Forms.BindableProperty

RejectedSymbolErrorTextProperty

Identifies the RejectedSymbolErrorText property.

Declaration
public static readonly BindableProperty RejectedSymbolErrorTextProperty
Field Value
Xamarin.Forms.BindableProperty

WatermarkTextColorProperty

Identifies the WatermarkTextColor property.

Declaration
public static readonly BindableProperty WatermarkTextColorProperty
Field Value
Xamarin.Forms.BindableProperty

WatermarkTextProperty

Identifies the WatermarkText property.

Declaration
public static readonly BindableProperty WatermarkTextProperty
Field Value
Xamarin.Forms.BindableProperty

Properties

BorderStyle

Gets or sets a BorderStyle defining the look of the border around the entry. The default value is defined by the OS.

Declaration
public BorderStyle BorderStyle { get; set; }
Property Value
BorderStyle

Commands

Gets a collection of user commands.

Declaration
public ObservableCollection<ControlCommandBase<MaskedInputElement>> Commands { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<ControlCommandBase<MaskedInputElement>>

DisplayedText

Gets the visible text of the entry.

Declaration
public string DisplayedText { get; }
Property Value
System.String

DisplayedTextColor

Gets or sets the color of the visible text of the entry.

Declaration
public Color DisplayedTextColor { get; set; }
Property Value
Xamarin.Forms.Color

DisplayedTextFont

Gets or sets the font of the visible text of the entry.

Declaration
public string DisplayedTextFont { get; set; }
Property Value
System.String

DisplayedTextFontSize

Gets or sets the font size of the visible text of the entry.

Declaration
public double DisplayedTextFontSize { get; set; }
Property Value
System.Double

ErrorColor

Gets or sets color of the error state. This color is applyed to the error text and border.

Declaration
public Color ErrorColor { get; set; }
Property Value
Xamarin.Forms.Color

ErrorFontSize

Gets or sets the font size of the error.

Declaration
public double ErrorFontSize { get; set; }
Property Value
System.Double

InputValue

Gets or sets the input value.

Declaration
public string InputValue { get; set; }
Property Value
System.String

InvalidInputErrorText

Gets or sets the text that will be visualized after lost focus validation is triggered.

Declaration
public string InvalidInputErrorText { get; set; }
Property Value
System.String

IsErrorTextVisible

Gets a value indicating if the error text is visible.

Declaration
public bool IsErrorTextVisible { get; }
Property Value
System.Boolean

IsInputAccepted

Gets a value indicating if the input matches the mask.

Declaration
public bool IsInputAccepted { get; }
Property Value
System.Boolean

IsMaskFull

Gets a value indicating if all required symbols are filled. The default value is true. Can be false only when required symbols tokens are present in the mask.

Declaration
public bool IsMaskFull { get; }
Property Value
System.Boolean

Keyboard

Gets or sets type of the keyboard that will be visualized by the device.

Declaration
public Keyboard Keyboard { get; set; }
Property Value
Xamarin.Forms.Keyboard

Mask

Gets or sets a string defining the mask.

Declaration
public string Mask { get; set; }
Property Value
System.String

MaskType

Gets or sets the expected type of the mask.

Declaration
public MaskType MaskType { get; set; }
Property Value
MaskType

Placeholder

Gets or sets the char that will be used to mark an empty position. The default value is '_'.

Declaration
public char Placeholder { get; set; }
Property Value
System.Char

RejectedSymbolErrorText

Gets or sets the string that will be visualized after each input validation.

Declaration
public string RejectedSymbolErrorText { get; set; }
Property Value
System.String

WatermarkText

Gets or sets the watermark of the control.

Declaration
public string WatermarkText { get; set; }
Property Value
System.String

WatermarkTextColor

Gets or sets the color of the watermark.

Declaration
public Color WatermarkTextColor { get; set; }
Property Value
Xamarin.Forms.Color

Methods

OnChildAdded(Element)

Declaration
protected override void OnChildAdded(Element child)
Parameters
Xamarin.Forms.Element child

Overrides
RadContentView.OnChildAdded(Element)

OnChildRemoved(Element)

Declaration
protected override void OnChildRemoved(Element child)
Parameters
Xamarin.Forms.Element child

Overrides
RadContentView.OnChildRemoved(Element)

OnPropertyChanged(String)

Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
System.String propertyName

Overrides
RadContentView.OnPropertyChanged(String)

Events

ApplyMaskFinished

Occures after the masking engine is triggered.

Declaration
public event EventHandler<ApplyMaskFinishedEventArgs> ApplyMaskFinished
Event Type
System.EventHandler<ApplyMaskFinishedEventArgs>

ApplyMaskStarted

Occures before the masking engine is triggered.

Declaration
public event EventHandler<ApplyMaskStartedEventArgs> ApplyMaskStarted
Event Type
System.EventHandler<ApplyMaskStartedEventArgs>

Sample Applications
  • Telerik Tagit
  • iOS Demo App
  • Android Demo App
Support Resources
  • iOS Wrappers
  • Android Wrappers
  • Xamarin.Forms SDK Examples
Community
  • Forums
  • Blogs
  • 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.