Suresh Balaraman
Suresh Balaraman

Reputation: 175

How to change the Button color while mouse over

I am trying to create a simple sample that contains a button. I need to change the background when hovering the cursor over that button.

In Windows Phone it has VisualStateManager or triggers in WPF xaml but I don't know how to do it with Xamarin.Forms buttons.

<Button Background="Red" >
   ...
    <VisualState x:Name="PointerOver">
                               ...
    </VisualState>
</Button

Upvotes: 1

Views: 2392

Answers (1)

Matt
Matt

Reputation: 4603

As far as I know you have to do this natively. Create a new Control and implement the renderers on the platforms with this behavior.

Upvotes: 1

Related Questions