Monday, October 27, 2014

ListView ItemsSource and DataContext TwoWay binding

Hi Alexey,


Are you using ObservableCollection as your data source? If not, assign an ObservableCollection as your DataContext. This way new and deleted items in the collection will be automatically reflected in your ListView.


Also, in order to reflect changes in your UI through data binding you need to implement INotifyPropertyChanged on the properties you expose on UI.




My Apps



No comments:

Post a Comment