• Advertisement
Sign in to follow this  

[.net] [WPF] How to Data Bind one ListBox to another ListBox SelectedItem

This topic is 2944 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can I bind data of one ListBox to an ObservableCollection of the SelectedItem of another ListBox? I thought I could just use
DataContext="{Binding ElementName=<elementName>, Path=SelectedItem}"
but that doesn't work since it doesn't know what to bind in that object. Any ideas? edit: Nevermind, it's working now. I didn't realise you could use SelectedItem.<ObservableCollection>... and I was also blissfully unaware of IsSynchronizedWithCurrentItem :D [Edited by - Side Winder on February 25, 2010 10:50:15 AM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement