I have two List<ColumnClass>. one for left side listview and another for right side list view. these listviews are in a pop up box. I am modifying the List of both the Listviews and again assigning that to the Listview’s ItemsSource. But this doesn’t reflect in the UI immediatly. When I close the popup and open again it reflects the changes. What am I missing?
I have two List<ColumnClass> . one for left side listview and another for right
Share
You should replace the
List<T>withObservableCollection<T>, ObservableCollections will update your ListView whenever an Item is removed, If you are just modifing properties yourColumnClassmake sure yourColumnClassimplementsINotifyPropertyChangedthis will allow the UI to update when a property changes.Example:
Code:
xaml:
Model: