Animation Duration in .NET MAUI Busy Indicator (SfBusyIndicator)

21 Aug 20241 minute to read

Animation Duration in .NET MAUI Busy Indicator

The DurationFactor property of the .NET MAUI Busy Indicator can be used to set the animation speed based on given value. Setting smaller duration value accelerates animation speed. Its default value is 0.5 and ranges from 0 to 1.

<core:SfBusyIndicator x:Name="busyIndicator"
                      IsRunning="True"
                      AnimationType="CircularMaterial"
                      DurationFactor="0.2" />
SfBusyIndicator busyIndicator = new SfBusyIndicator()
{
    IsRunning = true,
    AnimationType = AnimationType.CircularMaterial;
    DurationFactor= 0.2
};

The following screenshot illustrates the result of the above code.

Animation Duration