I am working on a cross platform xamarin forms application(with MVVM). In this application i am trying to bind a observable collection to ItemSource of ListView. i am writing a async function to get the values from rest service. When i assign those values then those values are not bound to listview. I have INotifyPropertyChanged implementation in BaseViewModel class.
When i add some objects to collection outside async function then those values are bound to listview but when i do same in async function. I know that using async will create a new background thread and as this code is not running on main thread the assignment might have some issue. To resolve this i used device.begininvokeonmainthread to force only assignment to run on main thread. But none of the solutions are working for me.
Please provide me if you have any working example in.