#Xamarin Animated #GIFs

In the latest version of Xamarin , version 4.4, Images can now show animated GIFs.

Normally my posts are a bit longer to explain how to implement a new Xamarin feature, but this one is so simple, yet powerful, that only a small post is needed.

Sweet.

The Image tag now has an attribute called IsAnimationPlaying. Set that to true and the source to an animated GIF, either local or remote.

That’s it. Your app can now show Borat.

<Image Source="borat.gif" IsAnimationPlaying="true"></Image>

animation.gif

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s