Articles in this section
Category / Section

How to change animation speed in BusyIndicator?

1 min read

To change the Animation Speed in BusyIndicator, follow the given steps:

Step 1: Create BusyIndicator sample and include the necessary source files.

Step 2: Create an instance for BusyIndicator..

Step 3: Then set AnimationType for the BusyIndicator and Enable IsBusy property.

Step 4: Now set the Duration to the  BusyIndicator.

C#

public partial class BusyIndictorPage : ContentPage    {        SfBusyIndicator busyIndicator;        public BusyIndictorPage()        {            InitializeComponent();            busyIndicator = new SfBusyIndicator();            busyIndicator.IsBusy = true;            busyIndicator.AnimationType = AnimationTypes.Battery;
     busyIndicator.Duration = 5; 
            StackLayout stack = new StackLayout();            stack.Padding = new Thickness(20, 100);            stack.Children.Add(busyIndicator);            this.Content = stack;        }    } 
 

 

The following screenshot shows the animation in BusyIndicator:

 

BusyIndicator.png

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied