DEV Community

Cover image for Remove Entry and Picker borders in .NET MAUI

Remove Entry and Picker borders in .NET MAUI

Victor Hugo Garcia on June 14, 2023

If you are developing a .NET MAUI app that uses form elements such as entries and pickers, you might want to apply a custom design for those fields...
Collapse
 
evgenyshevchuk profile image
Eugene Shevchuk

Oh, wow! This made my day. Thank you!

Collapse
 
aldincedeno profile image
aldincedeno

Muy buena explicación. Soy nuevo en MAUI

Una duda, como se registra FormHandler.RemoveBorders(); en MauiProgram

Gracias de antemano

Collapse
 
vhugogarcia profile image
Victor Hugo Garcia

Hola amigo,

Se registra dentro del metodo: public static MauiApp CreateMauiApp() antes de return builder.Build();

Saludos

Collapse
 
rodrigo_ferreira_f018455f profile image
Rodrigo Ferreira

Maravilha de dica, eu amei <3

Collapse
 
asifhussainos profile image
AsifHussain-os

Hi, by using this handler text is not visble please help how to make visible

Collapse
 
vhugogarcia profile image
Victor Hugo Garcia

I did not face that issue. Maybe you are setting the wrong TextColor to the ? if you believe you are correct, I recommend you to open a ticket on the MAUI repository with a sample project :)

Collapse
 
asifhussainos profile image
AsifHussain-os

I resolved my issue , i was not setting height and width to a both frame and entry that's error was occuring.

Thread Thread
 
vhugogarcia profile image
Victor Hugo Garcia

great, thanks for sharing it!

Collapse
 
nakullukan profile image
Nakul

I want to remove border for Entry in windows platform. I can do this using handlers as shown this article. But I am wondering why the border shows again when the entry element is focused.

Collapse
 
vhugogarcia profile image
Victor Hugo Garcia

Hello @Nakul, I am sorry, I don't have much experience with the Windows platform for MAUI. Maybe you can ask by creating a discussion topic on the .NET MAUI depository, so others with experience on Windows can provide some insights.