How to remove underline when Entry receives focus in maui for windows?

Jeff Pfahl 61 Reputation points

When an Entry receives focus it displays a border and underline. I am handling focus indication in a different way and do not what the default styling.

Setting UseSystemFocusVisuals to false does not fix it.

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
916 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,821 Reputation points Microsoft Vendor

    Hello @Jeff Pfahl ,

    Please check TextControlBorderThemeThicknessFocused in Windows UI Library, and set Thickness 0. Try to add the following code in App.xaml under Platforms/ Windows :

            <Thickness x:Key="TextControlBorderThemeThickness">0</Thickness>  
            <Thickness x:Key="TextControlBorderThemeThicknessFocused">0</Thickness>  

    Best Regards,
    Wenyan Zhang

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.