ClickItem for a WPF comboBox won't select an item by its caption, only by index
Hi,
we are using a WPF comboBox object in our app (System.Windows.Controls.ComboBox), I am trying unsuccessfully to select one of the comboBox items using its caption, it does work using index but, in this case, I can't use the index as once an item is selected the sorting of the items is mixed up. this comboBox has languages items in it so for the first time the app is loading and by default, the selected language will be English, and the sorting of the languages will be x and will be done by alphabetical order but, if I will select French (using an index for example) the sorting of the languages will change as all the languages are now written in French and they will get re-sorted by alphabetical order so, using an index is out of the question in this case. the only option here is to use the language caption. any idea how can I do that?
Thanks,
Ofer