I want to get the value of the selected item of the combobox. I'm using wpf and c#.
I make something like that:
String c = Combobox.SelectedItem.Tag
No, all the answers are wrong here, but perhaps it is also a bit 'my fault because I could not express myself well.
However, for each item in the ComboBox associate a value, for example:
Item1 (Value) => Home (Tag)<br>
Item2 (Value) => Away (Tag)<br>
Item3 (Value) => Half (Tag)<br>
and this is September Tag like:
Now I want get this tag When the related item is selected, for example:
user select Item1 and in the variable is valorize Home with tags ...
But isn't working. So what is the way to get it?