I have a List<Foo> from a non-WPF assembly which I'm attempting to databind to a WPF <ListBox>. Initially, the list items display correctly, but when I add a new item to the List<Foo>, the listbox doesn't add a list item. How do I tell the list box to re-bind / update / refresh the data and show the new item?
WPF data-binding manual update
data-bindingwpf
Related Topic
- C# – Binding a WPF ComboBox to a custom list
- C# – Display custom object data to ListBox WPF
- Wpf – How to display default text “–Select Team –” in combo box on pageload in WPF
- C# – How to bind an enum to a combobox control in WPF
- Javascript – How does data binding work in AngularJS
- C# – Making a WPF TextBox binding fire on each new character
- C# – WPF ListBox Binding Update
Best Answer
Although using an ObservableCollection is the best way, to answer the actual question, the way to update manually is to call BindingExpression.UpdateTarget