Change SfNumericEntry underline color

I having trouble change SfNumericEntry underline color. i have tried add handler like 

Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping("NoUnderline", (h, v) =>

            {

                h.PlatformView.BackgroundTintList =

                    Android.Content.Res.ColorStateList.ValueOf(Colors.Transparent.ToAndroid());

            });
but no luck. 


1 Reply

HC Hariharan Chokkalingam Syncfusion Team December 9, 2024 12:32 PM UTC

HI,


Thank you for reaching out to Syncfusion Support.


We’d like to inform you that in our Numeric Entry control, the underline is drawn using custom rendering. When you attempt to change the underline color using a handler, it does not reflect because the underline is not directly controlled by the BackgroundTintList property.


However, if you’d like to change the underline color or remove it entirely, you can use the Stroke property or the ShowBorder property of the SfNumericEntry control, as shown below:


 <editors:SfNumericEntry x:Name="numericEntry" Value="20" Stroke="Transparent"   />

<editors:SfNumericEntry x:Name="numericEntry" Value="20"  ShowBorder="False"   />


For more details, please refer to our documentation: Basic Features in .NET MAUI Numeric Entry control | Syncfusion


Please let us know if you have any further concerns or questions.


Regards,

Hariharan.


Loader.
Up arrow icon