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

Migrating the MaskedInput from Xamarin to .NET MAUI

The Telerik .NET MAUI MaskedEntry control is a completely new control, with a new API, various improvements, and a flexible styling mechanism.

Migrating the Namespaces

Control Control name XAML Namespcace C# Namespace
Xamarin MaskedInput RadMaskedInput xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input" using Telerik.XamarinForms.Input;
.NET MAUI MaskedEntry RadMaskedEntry xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui" using Telerik.Maui.Controls;

Modifying the API

Compared API changes in Xamarin.Forms MaskedInput and .NET MAUI MaskedEntry are described in the table below:

Xamarin MaskedInput .NET MAUI MaskedEntry
MaskType—Regex, Text There isn't a MaskType property. Separate masks—Text Mask, Email Mask, Numeric Mask, Regex Mask, IP Mask
Mask Mask
InvalidInputErrorText ValidationErrorMessage
WatermarkText Placeholder
InputValue Value
- ValueFormat
Placeholder PromptChar
ApplyMaskedStarted -
ApplyMaskedFinished -
- ValueChanging
- ValueChanged
- Localization Support
- Globalization Support
- Null Values Support

See Also

In this article