c# - How to get value of the selected item -


i want value of selected item of combobox. i'm using wpf , c#.

i make that:

 string c = combobox.selecteditem.tag 

no, answers wrong here, perhaps bit 'my fault because not express myself well. however, each item in combobox associate value, example:

item1 (value) => home (tag)<br> item2 (value) => away (tag)<br> item3 (value) => half (tag)<br> 


, september tag like:

want tag when related item selected, example: user select item1 , in variable valorize home tags ... isn't working. way it?

string c=combobox.selectedvalue 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -