You are looking for animation methods available on ui components. Essentially, you need to add a click handler to your button, which starts the animation (first change the color, then gradually darken using async / await). I added a link to a sample that animates resizing, but the theory remains the same.
this.GestureRecognizers.Add(new TapGestureRecognizer
{
Command = new Command(async (o) =>
{
await this.ScaleTo(0.95, 50, Easing.CubicOut);
await this.ScaleTo(1, 50, Easing.CubicIn);
if (callback != null)
callback.Invoke();
})
});
source
share