TwoWay Binding of a ComboBox to a static property in .NET 4.5

后端 未结 1 2008
滥情空心
滥情空心 2021-01-26 13:33

Well, i just posted this question, but i figured that i am not doing anything wrong. My code (and the code of all of the answers) is correct, but my dev-maschine runs with .NET4

相关标签:
1条回答
  • 2021-01-26 14:21

    Please refer to my report on Microsoft Connect. Every Selector control is infected by this issue.

    Finally, a few weeks ago Microsoft released an appropriate patch which has already been distributed through Windows Update. see Knowledge Base KB2805222 (WPF - Issue 7)

    WPF - Issue 7: Assume that you change a selector property (such as, the SelectedItem property) or ComboBox.Text property by using a binding path that contains a static property. In this situation, the binding does not react to the changes. Specifically, the new value is not written to the data item.

    0 讨论(0)
提交回复
热议问题