I have a listbox which lists user details and on selection opens that user detail in a new instance of the user detail window
using UserDetailWin udw = new UserDetailWindow();
udw.show();
Comboboxes in the window are populated by a shared CollectionViewSource and SelectedValue is done through TwoWay binding.
The problem is when I have more than one UserDetailWin open and change the combobox selection in one all the others get that selected id.
Anyone know what I’m doing wrong?
Thanks in advance
Kier
This is normal behaviour. If you understand object references, then it should be easy to figure out by yourself.
To fix this, you should create new instance of
CollectionViewSourcefor each combo box.