Update automatic ListBox items when alter List

前端 未结 3 1511
南旧
南旧 2021-01-27 07:16

I have a ListBox, I populate it with ItemsSource with List.

But when I delete or add new control for this List, I need every tim

3条回答
  •  日久生厌
    2021-01-27 08:05

    Implement INotifyPropertyChanged interface in your viewmodel. Post that in the setter of this List, call the NotifyPropertyChanged event. This will result in updating your changes on UI

提交回复
热议问题