Member-only story

Xamarin.Forms: customize Material Entry control

Guriy Samarin
2 min readDec 2, 2019

--

If you’d like to customize simple Entry — you can read this article.

Let’s use standard customization options: TextColor, PlaceholderColor, BackgroundColor. I created a pair of Material Entries side by side for showcasing colors that can be easily customized.

We will have the following result

For further customization, we are going to use custom renderers (for each platform). You can read about this in detail in Microsoft site. But I will sum up steps for creating customized Material Entry.

I. Create control for customization

a) add MyMaterialEntry.cs file into your shared project

b) define MyMaterialEntry as Entry’s subclass

Customization of the MyMaterialEntry will be made by the custom renderer, so no additional implementation is required

--

--

Guriy Samarin
Guriy Samarin

Written by Guriy Samarin

Software developer at Amazon. Web (mostly backend) development now. My stack — .NET (APS.NET Core MVC).

No responses yet