Binding ComboBoxes to enums… in Silverlight!

后端 未结 4 653
醉梦人生
醉梦人生 2021-01-31 15:42

So, the web, and StackOverflow, have plenty of nice answers for how to bind a combobox to an enum property in WPF. But Silverlight is missing all of the features that make this

4条回答
  •  遥遥无期
    2021-01-31 15:58

    There is another way to bind ComboBox to enums without the need of a custom converter for the selected item. You can check it at

    http://charlass.wordpress.com/2009/07/29/binding-enums-to-a-combobbox-in-silverlight/

    It doesn't use the DescriptionAttributes.... but it works perfectly for me, so i guess it depends on the scenario it will be used

提交回复
热议问题