WPF MVVM ComboBox SelectedItem or SelectedValue not working

前端 未结 18 2361
一生所求
一生所求 2020-12-05 06:22

Update

After a bit of investigating. What seems to be the issue is that the SelectedValue/SelectedItem is occurring before the Item source is finis

18条回答
  •  失恋的感觉
    2020-12-05 06:53

    I have noticed this behavior before as well. I have noticed that the SelectedIndex property doesn't cause the same bug. If you can restructure your ViewModel to expose the index of the selected item, and bind to that, you should be good to go.

提交回复
热议问题