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
60
WPF XamDataGrid DragDrop MVVM behaviour
posted

Hi

I've been scouring your forums all day and have not found a suitable response to my question yet :-(

I have a custom FrameworkElementDragBehaviour class that is defined as: -

public class FrameworkElementDragBehaviour : System.Windows.Interactivity.Behavior<FrameworkElement>{...}

that handles MouseDown/MouseLeave events of the AssociatedObject.

Does the XamDataGrid have a DependencyObject to which I can bind this behaviour??? Something similar to: -

<igWpf:XamDataGrid>

<i:Interaction.Behaviors>

 <behaviour:FrameworkElementDragBehaviour></behaviour:FrameworkElementDragBehaviour>

</igWpf:XamDataGrid>

But for the Selected Rows in the grid. Is this possible? I need an MVVM solution with NO code-behind.

I need to be able to drag one or more rows from the grid onto a TreeViewControl. I'm not concerned at this stage with the drop behaviour, however.

Sorry about the message formatting!!! :-)

Thanks

Mike

Parents Reply Children