Search code examples
xamarinbuttonxamarin.formsxamarin.uwpcustom-renderer

Remove border when hover a button Xamarin form UWP


How to remove the rectangle border showing when hovering the button in Xamarin form UWP. I have referred the following link

Remove border of button when hover

that we have to change border width property, that too failed because I am using a rounded corner button that border only came whenever hovering and clicking.

Following screenshots will display the scenario.

Button - normal state

Button - when hovers


Solution

  • I have found the answer for my own question few minute after posting it.

    you can override ButtonBackgroundPointerOver inside your App.xaml of UWP project.

    <Application.Resources>
        <SolidColorBrush x:Key="ButtonBackgroundPointerOver">Transparent</SolidColorBrush>
    </Application.Resources>
    

    I have found this from Hover pointover background