How to bind a ComboBox to generic dictionary via ObjectDataProvider
To your ComboBox add
SelectedValuePath="Key" DisplayMemberPath="Value"
There's an easier way.
Convert the enumeration to a Generic.Dictionary object. For example let say you wanted a combo box with the weekday ( just convert the VB to C#)
Dim colWeekdays As New Generic.Dictionary(Of FirstDayOfWeek, String)
For intWeekday As FirstDayOfWeek = vbSunday To vbSaturday
colWeekdays.Add(intWeekday, WeekdayName(intWeekday))
Next
RadComboBox_Weekdays.ItemsSource = colWeekdays
In your XAML you only need to set the following to bind to an object:
SelectedValue="{Binding Path= StartDayNumberOfWeeek}" SelectedValuePath="Key"
DisplayMemberPath="Value" />
The code above can easily be generalized using reflection to handle any enumerations.
hope this helps