Jump to content
  • Advertisement
Sign in to follow this  
Side Winder

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

This topic is 3064 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!