Animation in Xamarin.Forms

Xamarin.Forms provides the ability to create easy and wonderful views animations with few lines of code. For example, if you need to rotate a View, you can simple set the Rotation property, like this:

Device.StartTimer (TimeSpan.FromMilliseconds (100), () => {
    this.Ball.Rotation+=1;
    return true;
});

So, you can get this effect:

RotatingImage

Enjoy!

Found a problem? Edit this post