Problem: data changes, but ListView does not update
I have a ListView whose ItemsSource is set
<ListView ItemsSource="{Binding ContactsGrouped}"
When I click the button, I update the query to return records containing the letters "Je". I see that the right thing is returning, and that ContactsGrouped is being updated, but the user interface is not changing.
public ObservableCollection<Grouping<string, Contact>> ContactsGrouped { get; set; }
where Grouping is as follows:
public class Grouping<K, T> : ObservableCollection<T> { public K Key { get; private set; } public Grouping ( K key, IEnumerable<T> items ) { Key = key; foreach ( var item in items ) this.Items.Add( item ); } }
Given that I am using ObservableCollections, I expect the list to be redrawn. Am I missing something?
xamarin xamarin.forms
Jesse liberty
source share