This question is locked. New answers and comments are not allowed.
I know this is more of a general Silverlight question but since it is in reference to a Blog post from Vladmir I thought I would ask here. I am trying to implement his method for binding the SelectedItems property of a GridView to my own collection but I need to setup the binding programmatically. Here is the binding in question:
What I'm a little bit unclear about is how to bind the SelectedItems of the MyMultiSelectBehavior to the SelectedItems of the data context since MyMultiSelectBehavior is only a DependencyObject and does not contain the SetBinding method. Any help would be greatly appreciated.
Thanks,
Chris
<telerik:RadGridView ItemsSource="{Binding Data}" SelectionMode="Extended" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"> <i:Interaction.Behaviors> <local:MyMultiSelectBehavior SelectedItems="{Binding SelectedItems, Source={StaticResource context}}" /> </i:Interaction.Behaviors></telerik:RadGridView>What I'm a little bit unclear about is how to bind the SelectedItems of the MyMultiSelectBehavior to the SelectedItems of the data context since MyMultiSelectBehavior is only a DependencyObject and does not contain the SetBinding method. Any help would be greatly appreciated.
Thanks,
Chris