This is a migrated thread and some comments may be shown as answers.

Bindable SelectedItems for WPF GridView

0 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sylvain
Top achievements
Rank 1
Sylvain asked on 09 Mar 2017, 11:57 AM

Hi, 

I need to be able to bind the SelectedItems property of the RadGridView to a ObservableCollection property of my ViewModel. So I use the "MySelectedItemsBindingBehavior" class I found on your sample project called BindingSelectedItemsFromViewModel_WPF (found on github).

 

I would like to know why in this class, there is a static Attached boolean property.

In fact, if I load the same UserControl twice, only the first one is able to bind correctly its ObservableCollection to the SelectedItems of the RadGridView.

Is there a reason why you added this static boolean?

 

Thanks in advance

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Sylvain
Top achievements
Rank 1
Share this question
or