New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI DataForm Masked Editors

You can use the following Masked Editors the DataForm provides:

  • DataFormRadTextMaskedEditor—of type RadTextMaskedEntry(/devtools/maui/controls/maskedentry/mask-types/text)
  • DataFormRadNumericMaskedEditor —of type RadNumericMaskedEntry(/devtools/maui/controls/maskedentry/mask-types/numeric)
  • DataFormRadEmailMaskedEditor —of type RadEmailMaskedEntry(/devtools/maui/controls/maskedentry/mask-types/email)
  • DataFormRadRegexMaskedEditor —of type RadRegexMaskedEntry(/devtools/maui/controls/maskedentry/mask-types/regex)

Each Masked Editor has Mask and Culture Placeholder properties.

Other properties that are common for all editors are listed in the Editors Overview article.

Styling

You can easily style the editors using the properties BackgroundColor, BorderColor and BorderThickness. You can additionally style each editor by applying a style with the same target type as the underlying control.

A table with all editors and their control types is available in the Editors Overview article.

Example with DataFormRadTextMaskedEditor

<Style x:Key="RadTextMaskedEditorStyle" TargetType="telerik:RadTextMaskedEntry">
             <Setter Property="EntryCornerRadius"
                Value="3" />
             <Setter Property="EntryBackgroundColor"
                Value="LightSlateGrey" />
             <Setter Property="ClearButtonColor"
                 Value="DarkOrange" />
</Style>

And the editor definition

<telerik:DataFormRadTextMaskedEditor PropertyName="Password"
                                     HeaderText="Password"
                                     BackgroundColor="LightGray"
                                     BorderColor="DarkBlue"
                                     BorderThickness="1"
                                     EditorStyle="{StaticResource RadTextMaskedEditorStyle}"/>

For more information about how to style the editors, review the Editors Styling article.

In this article
Not finding the help you need?