Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
300
How can I Bind to SelectedItems of XamMultiColumnComboEditor, MVVM
posted

Hi,

I've successfully done binding to SlectedItem but when I trying to bind to SelectedItems(MultipleSelectionAllowed = True) application hangs. I've attached Sample Project. Could you please help me.

Thanks, Vahagn.

TestMultiColumnComboEditor.rar
  • 34510
    Suggested Answer
    Offline posted

    Hi Vahagn,

    The SelectedItems property on the XamMultiColumnComboEditor was not meant to be bindable.  If you want to bind to the SelectedItems collection then instead you should use a Blend Behavior<T> to do this.  I modified your sample to show this.  In the MainWindow.xaml.cs file I added a Behavior<T> which will translate the selected items into the view model SelectedItems property and vice versa.

    TestMultiColumnComboEditor.zip