tags:

views:

35

answers:

2

Hi all i need help wih my combobox. Iam quite new in the WPF world. Ihave an combobox that the itemsource is binding with the following items:

Red
Green
Blue
Yellow

I want to select like "Red" in the code behind then the combobox will highligt "Red" and "Red" is selected. How can i do this in code thanks for advice. And sorry for my bad english.

A: 

You can bind combobox's value property to description, and the item will be highligted after setting value

ArsenMkrt
Thanks for the help but i dont get what you mean. Can you please give an example.
Tan
A: 

Can you please explain your question with some code samples?

Veer