I'm new to WPF,
I add elements dynamically to combobox as shown below
objComboBox.Items.Add("<--Select-->");
Now I need to set the value and index for a specific item. In asp.net I did
DropDownList1.Items.FindByText("<--Select-->").Value ="-1"
I did not find a suitable method in wpf. How can i do this?
source share