- Home
- Forum
- Xamarin.Forms
- sfBusyIndicator does not work
sfBusyIndicator does not work
Do you have a complex example of sfBusyIndicator working with data binding? I have tried to get it to work but no luck. Below is an example of a semi-complex page.
<ContentPagexmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:sf="clr-namespace:Syncfusion.SfBusyIndicator.XForms;assembly=Syncfusion.SfBusyIndicator.XForms"
xmlns:vm="clr-namespace:ViewModels;"
xmlns:c="clr-namespace:Controls;"
x:Class="Views.LandingPage"
BackgroundColor="{StaticResourcePrimary}"
Padding="0"NavigationPage.BackButtonTitle="">
<ContentPage.BindingContext>
<vm:LandingViewModel/>
ContentPage.BindingContext>
<ContentPage.ToolbarItems>
<ToolbarItemx:Name="toolbarItem"
Command="{BindingDisplayBirthdayCommand}"
IsEnabled="{BindingIsNameAndNicknameReady}"
Text="{BindingNextText}"/>
ContentPage.ToolbarItems>
<ContentPage.Content>
<ScrollView>
<StackLayout>
<ImageMargin="0,51,0,0"Source="Logo"/>
<LabelMargin="35,20,35,0"
Style="{StaticResourceHeadingLabel}"
Text="{BindingHeadingText}"/>
<c:KBEntryx:Name="entryName"Margin="35,20,35,9"
Placeholder="What'syourname?"
ReturnKey="Next"
Text="{BindingName}"/>
<c:KBEntryx:Name="entryNickname"Margin="35,0,35,0"
Placeholder="WhatshouldIcallyou?"
ReturnKey="Next"
Text="{BindingNickname}"/>
<LabelMargin="0,14,0,10">
<Label.FormattedText>
<FormattedString>
<SpanText="or"FontSize="14"/>
<SpanText="Login"FontSize="14"
FontAttributes="Bold"/>
FormattedString>
Label.FormattedText>
<Label.GestureRecognizers>
<TapGestureRecognizer
Command="{BindingDisplayLoginCommand}"/>
Label.GestureRecognizers>
Label>
<LabelMargin="-7"Text="BytappingNext,youagreetothe"/>
<StackLayoutHorizontalOptions="Center"Orientation="Horizontal">
<LabelHeightRequest="11.5"
Style="{StaticResourceLinkLabel}"
Text="TermsofService">
<Label.GestureRecognizers>
<TapGestureRecognizer
Command="{BindingDisplayTermsOfServiceCommand}"/>
Label.GestureRecognizers>
Label>
<LabelText="and"/>
<LabelStyle="{StaticResourceLinkLabel}"
Text="PrivacyPolicy">
<Label.GestureRecognizers>
<TapGestureRecognizer
Command="{BindingDisplayPrivacyPolicyCommand}"/>
Label.GestureRecognizers>
Label>
StackLayout>
<sf:SfBusyIndicatorAnimationType="DoubleCircle"
IsBusy="{BindingIsBusy}"
ViewBoxHeight="50"ViewBoxWidth="50"/>
StackLayout>
ScrollView>
ContentPage.Content>
ContentPage>
xmlversion="1.0"encoding="UTF-8"?>
<ContentPagexmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:sf="clr-namespace:Syncfusion.SfBusyIndicator.XForms;assembly=Syncfusion.SfBusyIndicator.XForms"
xmlns:vm="clr-namespace:ViewModels;"
xmlns:c="clr-namespace:Controls;"
x:Class="Views.LandingPage"
BackgroundColor="{StaticResourcePrimary}"
Padding="0"NavigationPage.BackButtonTitle="">
<ContentPage.BindingContext>
<vm:LandingViewModel/>
ContentPage.BindingContext>
<ContentPage.ToolbarItems>
<ToolbarItemx:Name="toolbarItem"
Command="{BindingDisplayBirthdayCommand}"
IsEnabled="{BindingIsNameAndNicknameReady}"
Text="{BindingNextText}"/>
ContentPage.ToolbarItems>
<ContentPage.Content>
<ScrollView>
<StackLayout>
<ImageMargin="0,51,0,0"Source="Logo"/>
<LabelMargin="35,20,35,0"
Style="{StaticResourceHeadingLabel}"
Text="{BindingHeadingText}"/>
<c:KBEntryx:Name="entryName"Margin="35,20,35,9"
Placeholder="What'syourname?"
ReturnKey="Next"
Text="{BindingName}"/>
<c:KBEntryx:Name="entryNickname"Margin="35,0,35,0"
Placeholder="WhatshouldIcallyou?"
ReturnKey="Next"
Text="{BindingNickname}"/>
<LabelMargin="0,14,0,10">
<Label.FormattedText>
<FormattedString>
<SpanText="or"FontSize="14"/>
<SpanText="Login"FontSize="14"
FontAttributes="Bold"/>
FormattedString>
Label.FormattedText>
<Label.GestureRecognizers>
<TapGestureRecognizer
Command="{BindingDisplayLoginCommand}"/>
Label.GestureRecognizers>
Label>
<LabelMargin="-7"Text="BytappingNext,youagreetothe"/>
<StackLayoutHorizontalOptions="Center"Orientation="Horizontal">
<LabelHeightRequest="11.5"
Style="{StaticResourceLinkLabel}"
Text="TermsofService">
<Label.GestureRecognizers>
<TapGestureRecognizer
Command="{BindingDisplayTermsOfServiceCommand}"/>
Label.GestureRecognizers>
Label>
<LabelText="and"/>
<LabelStyle="{StaticResourceLinkLabel}"
Text="PrivacyPolicy">
<Label.GestureRecognizers>
<TapGestureRecognizer
Command="{BindingDisplayPrivacyPolicyCommand}"/>
Label.GestureRecognizers>
Label>
StackLayout>
<sf:SfBusyIndicatorAnimationType="DoubleCircle"
IsBusy="{BindingIsBusy}"
ViewBoxHeight="50"ViewBoxWidth="50"/>
StackLayout>
ScrollView>
ContentPage.Content>
ContentPage>
SIGN IN To post a reply.
3 Replies
VA
Vinnalan Aravazhi
Syncfusion Team
February 9, 2018 04:45 PM UTC
Hi Rabi,
Thanks for contacting Syncfusion support.
We have checked your reported issue "SfBusyIndicator does not work" from our side and we are unable to reproduce the reported issue from our side.
We have attached the sample in which we have checked the reported issue from our side. Please find the sample from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135846/ze/BusyIndicatorDataBinding-1106681306
Thanks for contacting Syncfusion support.
We have checked your reported issue "SfBusyIndicator does not work" from our side and we are unable to reproduce the reported issue from our side.
We have attached the sample in which we have checked the reported issue from our side. Please find the sample from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135846/ze/BusyIndicatorDataBinding-1106681306
Please let us know if you have any other queries.
Regards,
Vinnalan K A.
RA
Rabi
February 9, 2018 06:30 PM UTC
Please explain how you say this is working. When I run your example, I do not get the page content only the busy indicator spinning. Also odd is nowhere in the code do you set the indicator to true. It is set to false by default. So why is the indicator displaying?
VA
Vinnalan Aravazhi
Syncfusion Team
February 12, 2018 12:38 PM UTC
Hi Rabi,
Thanks for contacting Syncfusion support.
We have checked your reported issue "SfBusyIndicator does not work" from our side and we are unable to reproduce the reported issue from our side.
We have attached the sample in which we have checked the reported issue from our side. Please find the sample from the below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135846/ze/I195320-1488810246-1331991471
Thanks for contacting Syncfusion support.
We have checked your reported issue "SfBusyIndicator does not work" from our side and we are unable to reproduce the reported issue from our side.
We have attached the sample in which we have checked the reported issue from our side. Please find the sample from the below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135846/ze/I195320-1488810246-1331991471
So, could you please provide below mentioned details,
1) Modified sample which replicates the reported issue.
2) Which iOS version and device model reported issue gets occur.
It will help us to provide appropriate solution on this.
Please let us know if you have any other queries.
Regards,
Vinnalan K A.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
RA Rabi
- Feb 8, 2018 09:41 PM UTC
- Feb 12, 2018 12:38 PM UTC