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
955
Using DragDropManager & DragStart for below scenario?
posted

Hello,

We are using 2010.03 and started to explore Drag and Drop Framework for the scenario of allowing user to drag a list box item from FieldChooser control and drop on to  itself to rearrange column positions.

While we achieve this by handling preview + drop events and custom adorner, wanted to find out if we can achieve the same using DragDropManager so we can avoid these events and adornors.

Below is my Xaml. When try to drag and drop an item from the FieldChooser the "DragSource_DragStart" is not getting triggered, instead the built-in drag behavior kicks in.

Any idea how to resolve this? Do I have to set the drag source on LabelPresenter inside FieldChooser or something for this to work Or the DragDropManager is not meant for this purpose?

Please clarify.

Thanks in advance.

                <igDP:FieldChooser
            x:Name="fieldChooser"
            DataPresenter="{Binding ElementName=xamDataGrid1}"
            Width="180"
            Margin="2,2,2,10"
            FieldGroupSelectorVisibility="Collapsed"
            FieldDisplayOrder="SameAsDataPresenter"
            DockPanel.Dock="Left" IsManipulationEnabled="True">
                    <ig:DragDropManager.DragSource>
                        <ig:DragSource IsDraggable="True"
                                       DragStart="DragSource_DragStart"
                                       Drop="fieldChooser_DropViaIfgFramework" />
                    </ig:DragDropManager.DragSource>

                    <ig:DragDropManager.DropTarget>
                        <ig:DropTarget IsDropTarget="True" />
                    </ig:DragDropManager.DropTarget>
                </igDP:FieldChooser>