Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

ActivityIndicator in toolbar?

$
0
0

I am using an ActivityIndicator in my page to show loading of data from a web service. I have a toolbar item also in my page. I have bound the visibility of activityIndicator to IsBusy property in my view model using following code-

var activityIndicator = new ActivityIndicator ();
activityIndicator.SetBinding (ActivityIndicator.IsRunningProperty, "IsBusy");
activityIndicator.SetBinding (ActivityIndicator.IsVisibleProperty, "IsBusy");

However if I set the IsBusy property to true, I see indicator both as a content of my page (which I had set) and also in toolbar. How can I get rid of the activity indicator in toolbar?

Thanks

Apurva


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>