WPF conflict with strange problem

I bind SortedListbox to a WPF combo box. everything was great. The problem occurs when I select the first [only the first] element. The problem is that SelectedValue does not change when a new item is selected after selecting the first item. Assume that the SelectedValue of the first item is “1”, and the SelectedValue of the third item in the combo is “3”. If I select the first item, then select the third item. SelectedValue remains "1" when "3" is expected.

Any 1 have encountered similar problems.

Hi,

John.

+3
source share
2 answers

Perhaps you can try using IsSynchronizedWithCurrentItem for your management.

<ComboBox IsSynchronizedWithCurrentItem="True" />
+1

xaml, . , ComboBox.SelectedValue ComboBox.SelectedItem , ,

0

Source: https://habr.com/ru/post/1784709/


All Articles