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

Practical Drag Drop conversion from DragAndDropManager to DragDropManager

1 Answer 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 20 Aug 2013, 09:41 PM
Hi folks,

I am trying to make heads or tails out of the changes needed to move from the old version of the DDM to the new one. 

In particular, there seem to be no samples using the new version with things like substantive changes to the DefaultFeedbackPresentation.

In the old version, there was some code hooked in that looks like...
private static UIElement CreateDefaultDropPositionFeedback()
{
    var grid = new Grid()
    {
        Height = 8,
        HorizontalAlignment = HorizontalAlignment.Stretch,
        IsHitTestVisible = false,
        VerticalAlignment = VerticalAlignment.Stretch
    };
    grid.ColumnDefinitions.Add(new ColumnDefinition()
    {
        Width = new GridLength(8)
    });
    grid.ColumnDefinitions.Add(new ColumnDefinition());
    var ellipse = new Ellipse()
    {
        ...
    };
    Grid.SetColumn(ellipse, 0);
    Grid.SetColumn(rectangle, 1);
    grid.Children.Add(ellipse);
    grid.Children.Add(rectangle);
    return grid;
}

Where would this get hooked in on the new version of the Behaviors such as the RowReorderBehavior?

Thanks,
David

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 22 Aug 2013, 08:33 AM
Hi David,

Here is an updated version of the previous behavior with DragDropManager. 
Let me know if it will work for you. 

Regards,
Nik
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
David
Top achievements
Rank 2
Answers by
Nick
Telerik team
Share this question
or