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

Progress Indicator not showing

$
0
0

Hi

I have a progress indicator in my C# code that is not showing... Am not making use of XAML but build UI in C# code.

_progressIndicator = new ActivityIndicator
{
HorizontalOptions = LayoutOptions.Center,
Color = Color.Black,
BackgroundColor = Color.Black,
IsVisible = true,
IsRunning = true
};

_stackContentLayout.Children.Add (_progressIndicator);

protected void ShowProgressIndicator() {
if (_progressIndicator != null) {
_progressIndicator.IsVisible = true;
_progressIndicator.IsRunning = true;
}
}
protected void HideProgressIndicator() {
if (_progressIndicator != null) {
_progressIndicator.IsVisible = false;
_progressIndicator.IsRunning = false;
}
}


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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