From 082c3ea063a4e598d17d23a7849a3caf2bf3338e Mon Sep 17 00:00:00 2001 From: NatarajanSF4844 Date: Wed, 8 Oct 2025 10:49:20 +0530 Subject: [PATCH] Update Basic-Features.md --- MAUI/Masked-Entry/Basic-Features.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/MAUI/Masked-Entry/Basic-Features.md b/MAUI/Masked-Entry/Basic-Features.md index 8ee09ceca..a75a3748d 100644 --- a/MAUI/Masked-Entry/Basic-Features.md +++ b/MAUI/Masked-Entry/Basic-Features.md @@ -341,6 +341,32 @@ maskedEntry.SelectAllOnFocus = true; {% endhighlight %} {% endtabs %} +## IsReadOnly Mode + +The [`IsReadOnly`]() property allows you to make the masked entry non-editable while keeping it focusable and selectable. When enabled, users can still focus and select text, but cannot modify the value via typing, cut, paste, or the keyboard. The default value of this property is `false`. + +{% tabs %} +{% highlight xaml %} + + + +{% endhighlight %} +{% highlight c# %} + +SfMaskedEntry maskedEntry = new SfMaskedEntry(); +maskedEntry.WidthRequest = 200; +maskedEntry.MaskType = MaskedEntryMaskType.Simple; +maskedEntry.Mask = "(000) 000-0000"; +maskedEntry.Value = "1234567890"; +maskedEntry.IsReadOnly = true; + +{% endhighlight %} +{% endtabs %} + ## ReturnType The `ReturnType` property specifies the return button (e.g., Next, Done, Go) of the keyboard. It helps manage the flow between multiple input fields by defining what happens when the action button is pressed.