Hello,
I had a look at the XamMultiComboEditor which is a great control! I wanted to use the MultiSelection. Is there a way to Bind the selected Items to a viewModel via a Binding?
It worked for the SelectedItem with BindingMode.TwoWay, but I could not get it to work with the SelectedItems.
And listening to the selection changed in code behind and then accessing and passing XamMultiComboEditor.SelectedItems property to the ViewModel doesn't appear to be quite as clean as well?!
Regards,
Peter
Hello Peter,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan,
and thank you for your quick answer. You got me on a good track. Guess I'll solve the issue with an attached property, like so:
http://blog.functionalfun.net/2009/02/how-to-databind-to-selecteditems.html
Thanks and best regards,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Since the SelectedItems Property of the XamMultiColunComboEditor is read only it cannot be bound, so I added a DependancyProperty which I bound with OneWay mode to the SelectedItems. There doesn’t seem to be a way to set a TwoWay binding, it’s a WPF limitation.
Hope this helps you.