Binding ComboBox.SelectedItem in Silverlight

前端 未结 2 1179
死守一世寂寞
死守一世寂寞 2020-12-19 13:38

This one is driving me crazy. Here\'s the XAML:

    

        
2条回答
  •  一个人的身影
    2020-12-19 13:46

    Try this:

     
    

    SelectedItem does not like to be bound OneWay. I haven't had a chance to try it out in Silverlight 2 but in Silverlight 3 you will even get the yellow triangle of death if you don't use TwoWay binding.

提交回复
热议问题