Home > other >  About ComboBox WPF data binding, data source has changed but the interface hasn't changed
About ComboBox WPF data binding, data source has changed but the interface hasn't changed

Time:10-22



The Items inside have changed, but the display data did not change

I directly change behind the ComboBox. The Text did not change, how to break

CodePudding user response:

I used the ObservationCollection<> Binding the Itemsource
After I changed the data source of above items "Fine, thanks. And you?" Into the new data, no problem
But the display UI is "Fine, thanks. And you?" Did not change

CodePudding user response:



Done?? Data source after the assignment again give CurrentItem assignment

CodePudding user response:

Must be set to the current SelectedItem neck,
  • Related