Silverlight XAML Attribute Definition Order Matters

前端 未结 3 673
旧时难觅i
旧时难觅i 2020-12-06 05:10

I was working with the ComboBox control and couldn\'t get the SelectedItem to be set from the property on my viewmodel. Here is the control definition:



        
3条回答
  •  孤城傲影
    2020-12-06 06:12

    The next time you have a problem similar to this and you suspect the binding might be failing because of the order. Check your output window, it displays all binding errors, So from that error you could have deduced that the ItemSource was null at time of binding the SelectedItem property

提交回复
热议问题