hi XF team, Updating a Content of ContentPage after awaiting data from api call, blocks UI.

Balaji_VBalaji_V Member ✭✭
edited December 2018 in Xamarin.Forms

Sample Code snippet

View which has ActivityIndicator running with binding Set to IsBusy from BindingContext of (ViewModel) at Start
Once Api call finishes it updates ObservableCollection property in ViewModel , i am receiving ItemSource changed in View through Binding ,since i have created a bindable property of ItemSource in my View.

In that ItemSourcesChanged event I am building a complex View with the DataObject "newvalue" which i received -- Blocks Here (1)

Then i am setting this.Content = complexView; --Blocks Here too (2).

please help me.

Thanks,

Answers

  • YorkGoYorkGo CNMember, Xamarin Team Xamurai

    Could you please post more detailed codes? or maybe share a basic demo that can reproduce the problem through online repo

Sign In or Register to comment.