Reputation: 175
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
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