Is there any way to update a ListBox
control with Dictionary
binded to it without resetting its DataSource
property on every dictionary change? The reason I don't like this solution is that it forces a ListBox
control to jump to the first item as mentioned in other questions like this.
Here is a minimal example that reproduces this behavior -- https://bitbucket.org/ntrophimov/updating_issue (about 20 lines of code to read in the MainForm.cs
file)
Is there any other solution for this problem?
Is there any dictionary implementation in which I can manipulate items (add and remove them) and these changes will be immediately represented in a ListBox
control without refreshing its whole content?