Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF combo box weird problem

I am binding a SortedListbox to an WPF combo box. everything was fine. The problem happend when i select the first [only the first] item. The problem is that SelectedValue doesnt change when a new item is selected after selecting first item. Suppose SelectedValue of the first item is '1' and the SelectedValue of third item in the combo is '3'. If i select the first item and then selected the third item. SelectedValue remains'1', when '3' is expected.

Any 1 faced similar problems.

Regards,

John.

like image 644
John T.Emmatty Avatar asked Dec 04 '25 23:12

John T.Emmatty


1 Answers

Maybe you can try to use IsSynchronizedWithCurrentItem on your control.

<ComboBox IsSynchronizedWithCurrentItem="True" />
like image 57
Tony Avatar answered Dec 06 '25 13:12

Tony