I bind my ComboBox with static way.
when I set the string value which I get from item object (from service method), for example item.AssignmentType="xyz" I want to make it selectable in combobox. I tried below, but not working
<ComboBoxItem Content="abc"/>
<ComboBoxItem Content="xyz"/>
<ComboBoxItem Content="pqrs"/>
string assignmenttype = item.AssignmentType.ToString();
AssignmentTypeCombobox.SelectedIndex =
AssignmentTypeCombobox.Items.IndexOf(assignmenttype);