WPF MVVM ComboBox SelectedItem or SelectedValue not working

前端 未结 18 2424
一生所求
一生所求 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 07:18

    I have had similar issues and it was solved by making sure I was implementing IEquatable properly. When the binding occurs, it is trying to see if the objects match so make sure you are properly implementing your equality checking.

提交回复
热议问题