There is an application on WPF, it has two ListBox . I need to make it so that when selecting any item in one of the ListBox , the selection is reset from the other and vice versa.
I tried to hang the SelectionChanged event on each one and SelectedIndex = -1 , but it turned out crazy, because the event (of course) was triggered by both ListBox , which led to a drop in the selection of both (after having to re-select)
In general, I ask for your help in resolving this issue!