Xamarin Forms - Add Activity Indicator in the toolbar (Right Side)

AbhiNilAbhiNil CAMember ✭✭✭
edited December 2016 in Cross Platform with Xamarin

Hey guys ,

How can i set an activity indicator in my Xamarin Forms app toolbar ?

I set IsBusy=true; in my page and its onAppearing() function but nothing happens .

public TestPage()
    {
        InitializeComponent();

        /*ToolbarItem x = new ToolbarItem();
        x.Name = "Save";
        x.Order = ToolbarItemOrder.Primary;
        this.ToolbarItems.Add(x);*/

        IsBusy = true;
    }

protected override async void OnAppearing()
    {
        base.OnAppearing();

        IsBusy = true;

    }

I have a toolbar item on the right side but i want it replaced with an activity indicator when something is loading .

I tried isBusy = true without the toolbar item but nothing happens either ...

Any idea how to implement that ?

Answers

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭
    I think you can't. I never use activity indicator because I use ACR plugin, but if I remember correctly activity indicator is a XF control that you have to add in your layout not in your toolbar
Sign In or Register to comment.