Activity Indicator not being triggered ? RRS feed

  • Question

  • User392145 posted

    XAML: <AbsoluteLayout HorizontalOptions="Center" VerticalOptions="Center" Grid.Column="0" Grid.ColumnSpan="6" Grid.Row="2"> <ActivityIndicator x:Name="load" IsRunning="False" IsEnabled="False" IsVisible="False" Color="Green" BackgroundColor="Transparent"/> </AbsoluteLayout>

    C#: load.IsEnabled = true; load.IsRunning = true; load.IsVisible = true;

    Any help would be appreciated, I think i might have to bind the value for true in the XAML maybe?

    Wednesday, May 13, 2020 8:58 AM


  • User369978 posted

    What do you mean by Activity Indicator not being triggered ? Is it not shown ?

    We just need to control the property IsRunning, it indicates whether the ActivityIndicator should be visible and animating, or hidden.

                <ActivityIndicator x:Name="load" 
                <Button Clicked="Button_Clicked" Text="Show/Hide"/>
        private void Button_Clicked(object sender, EventArgs e)
            load.IsRunning = !load.IsRunning;

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, May 14, 2020 2:01 AM