My goal is to make the update of a listview of records in real time.
in the load page i set:
List<Myobjetcs> myitems = new List<Myobjects>();
...
...
listView.IsVisible = false;
listView.RowHeight = 55;
listView.IsPullToRefreshEnabled = true;
listView.Refreshing += ListView_Refreshing;
listView.ItemTapped += ListView_ItemTapped;
listView.SeparatorVisibility = SeparatorVisibility.None;
listView.SeparatorColor = Color.Black;
listView.ItemsSource = myitems;
every 10 seconds (with API) they will update the data, only a few records, randomly. My goal is to update the item without doing a refresh of the listview ... and without the ItemSource set to null and then reassign data.
public async void setSuperficie()
{
//here i receive the result of API (every 10 seconds) and update record listview.
}
I tried to slide the ItemSource with a for loop and update the data, but don't work.
it's possibile do ?
listView.ItemsSource[index].Property = Value;