Articles in this section
Category / Section

How to customize the return key in the Xamarin.Forms Masked Entry control?

1 min read

This article explains how to control the appearance of the return key button and the command that runs when the user presses the return key in Syncfusion Xamarin.Forms MaskedEdit.

 

ReturnKey_Image

 

The above image shows the return key is customized to the search button key. It can be achieved by the following steps:

 

Step1: Create an instance of SfMaskedEdit.

Step 2: Add the ReturnType Property to the SfMaskedEdit. It can be customized by setting the ReturnType property to a search value of the ReturnType enumeration.

 

Step 3: Add the ReturnCommand to run when the user presses the return key. You can also pass the parameter to the ICommand using the ReturnCommandParameter property.

 

 [XAML]

    
  <syncfusion:SfMaskedEdit x:Name="maskedEdit"  Mask="\w+@\w+\.\w+" MaskType="RegEx"  ReturnType="Search" ReturnCommand="{Binding UpdateCommand}" ReturnCommandParameter="Parameter"/>
 

 

 

View the sample in GitHub.

 

See also


How to add different types of MaskType in Xamarin.Forms Masked Entry (SfMaskedEdit)

How to use the Mask characters as literals in Xamarin.Forms Masked Entry (SfMaskedEdit)

How to show the password Character in Xamarin.Forms Masked Entry (SfMaskedEdit)

How to Formatting clipboard text in Xamarin.Forms Masked Entry (SfMaskedEdit)

 


 

Conclusion

I hope you enjoyed learning about how to customize the return key in the Xamarin.Forms Masked Entry control.

You can refer to our Xamarin.Forms MaskedEdit feature tour page to know about its other groundbreaking feature representations documentation and how to quickly get started for configuration specifications.  You can also explore our Xamarin.Forms Masked Edit example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied