views:

244

answers:

2

I can do this very easily on normal Combobox as SelectedText or SelectedValue, but using Silverlight, I can't get to that option.

A: 

Use the SelectedItem property

Thomas Levesque
SelectedItem give me the type, but not the value itself.It returns me ComboBoxItem, that's not what I want.
PlayKid
It returns ComboBoxItem because you defined the items in your list as ComboBoxItems... if you define the content with the ItemsSource property, it will return the actual data items. How do you define the "value" of a ComboBoxItem anyway ?
Thomas Levesque
A: 

I figured out myself already, I need to define a strong type, thanks

PlayKid