Search code examples
wpfdata-bindingmultibinding

WPF- How can I bind to SelectedValue properties of two Listboxes?


I need to do it in a way that the binding target is given the value of the most recently changed SelectedValue.


Solution

  • Databind both your listbox's SelectedValue to a view model property,So that the most recently selected value will be available in your Property.Then update your binding target accordingly.All depends what and how you are trying to do things