WPF ListBox not updating with the ItemsSource

后端 未结 3 1847
花落未央
花落未央 2020-12-20 14:42

I have what I believe should be simple two-way databinding in WPF setup, but the listbox (target) is not updating as the collection changes.

I\'m setting this ItemsS

3条回答
  •  醉话见心
    2020-12-20 15:27

    Is your m_VariableList implementing INotifyCollectionChanged? If it's not an ObservableCollection, then changes to it's contents will not automatically be reflected in the UI.

提交回复
热议问题