user10383915
user10383915

Reputation: 55

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

Upvotes: 1

Views: 1177

Answers (1)

user10383915
user10383915

Reputation: 55

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

Upvotes: 1

Related Questions