In this snippet we’ll take a quick look at a handy component that you can use straight out of the box in Xamarin Forms.

Please wait…

Any operation in your app that takes more than a few hundred milliseconds is going to benefit from some sort of feedback to the user.  There’s nothing worse than an app that appears to just hang while it’s busy.

Xamarin Forms gives you a quick and easy answer, with access to a platform specific ActivityIndicator.

<ActivityIndicator IsRunning="True"
Color="Crimson"
IsVisible="True" />

Using the control in XAML is simple. Pop it on your page, bind the IsRunning and IsVisible properties to your view model (IsBusy?) and away you go.

Xamarin has full support for Async/Await, so there’s no excuse for locked up UI’s.

ActivityAndroid