ListBox SelectedItems Binding

Posted by Polaris on Stack Overflow See other posts from Stack Overflow or by Polaris
Published on 2010-04-29T10:30:06Z Indexed on 2010/04/30 5:17 UTC
Read the original article Hit count: 896

Filed under:
|
|

I want to bind Listbox selectedItems to array. But .NET throw exceprion in runtime.

            d.SetBinding(ListBox.SelectedItemsProperty, new Binding { Source = SomeArray });

Where "d" some ListBox from XAML.

Exception: Selected Item cannot be bound. Why?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about databinding