Having trouble getting help?
Contact Support
Contact Support
Make Busy Animation Idle in Xamarin Busy Indicator (SfBusyIndicator)
25 Nov 20243 minutes to read
Make Busy Animation Idle in Xamarin BusyIndicator(SfBusyIndicator)
SfBusyIndicator
control provides support to determine whether an animation needs to be executed or not. Setting the IsBusy
property to false will stop the animation and removes the control from view.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:GettingStarted"
xmlns:busyindicator="clr-namespace:Syncfusion.SfBusyIndicator.XForms;assembly=Syncfusion.SfBusyIndicator.XForms"
x:Class="GettingStarted.MainPage">
<ContentPage.Content>
<busyindicator:SfBusyIndicator x:Name="busyindicator"
AnimationType="Ball"
ViewBoxWidth = "150"
ViewBoxHeight="150"
TextColor="Maroon"
IsBusy="False"/>
</ContentPage.Content>
</ContentPage>
using Syncfusion.SfBusyIndicator.XForms;
using Xamarin.Forms;
namespace GettingStarted
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
SfBusyIndicator busyIndicator = new SfBusyIndicator()
{
AnimationType = AnimationTypes.Ball,
ViewBoxHeight = 150,
ViewBoxWidth = 150,
TextColor = Color.Maroon,
IsBusy = false
};
this.Content = busyIndicator;
}
}
}
NOTE
The default value is true.