New to Telerik UI for .NET MAUIStart 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

ControlControl nameXAML NamespcaceC# Namespace
Xamarin MaskedInputRadMaskedInputxmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"using Telerik.XamarinForms.Input;
.NET MAUI MaskedEntryRadMaskedEntryxmlns: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, TextThere isn't a MaskType property. Separate masks—Text Mask, Email Mask, Numeric Mask, Regex Mask, IP Mask
MaskMask
InvalidInputErrorTextValidationErrorMessage
WatermarkTextPlaceholder
InputValueValue
-ValueFormat
PlaceholderPromptChar
ApplyMaskedStarted-
ApplyMaskedFinished-
-ValueChanging
-ValueChanged
-Localization Support
-Globalization Support
-Null Values Support

See Also