This project is read-only.

DragBehaviour usage in code

Apr 29, 2010 at 11:48 PM

I am creating a class that subclasses from UserControl. I want this class to have multi-controls and to have DragBehaviour out of the box.
Can you give me an example of how to use DragBehaviour via code and not XAML.

For example I want to do the following:

var X = new FooControl()

and have drag and drop ready to go. Very new to WPF and any help would be great!

Apr 30, 2010 at 10:35 PM

Looks like I answered my own question today. Once I learned about styles :) I just set the style of the type I want to have drag behavior.

Nice library. Thanks!

Aug 30, 2010 at 5:25 PM

@mez, would you mind posting a sample of your code?