Helper class that binds the DragDropManager events with a DragDropBehavior.
Definition
Namespace:Telerik.Windows.DragDrop.Behaviors
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewDragDropHelper : DragDropHelper<GridViewDragDropBehavior, GridViewDragDropState>
Inheritance: objectDragDropHelper<GridViewDragDropBehavior, GridViewDragDropState>GridViewDragDropHelper
Inherited Members
Constructors
public GridViewDragDropHelper()
Methods
FindDraggedItem(FrameworkElement)
FrameworkElement
Finds the GridViewRow that contains the provided element.
protected override FrameworkElement FindDraggedItem(FrameworkElement element)
The element that raised the DragInitialize event.
Returns:FrameworkElement
Overrides:
FindDragSource(FrameworkElement)
FrameworkElement
Finds the control that contains the provided element. In case of a ListBox drag-drop implementation, this method should return a ListBox.
protected override FrameworkElement FindDragSource(FrameworkElement element)
The element that raised the DragInitialize event.
Returns:FrameworkElement
Overrides:
Finds the RadGridView that contains the provided element.
FindDropItemsControl(FrameworkElement, object)
FrameworkElement
Finds the target control that should accept the dragged items. In case of a ListBox drag-drop implementation, this method should return a ListBox.
protected override FrameworkElement FindDropItemsControl(FrameworkElement element, object data)
The element that raised the Drop event.
dataobjectThe DataObject for the current drag operation.
Returns:FrameworkElement
Overrides:
Finds the RadGridView that should accept the dragged items.
FindDropTarget(FrameworkElement)
FrameworkElement
Finds an item from the target control that contains the provided element. In case of a ListBox drag-drop implementation, this method should return a ListBoxItem.
protected override FrameworkElement FindDropTarget(FrameworkElement element)
The element that raised the Drop event.
Returns:FrameworkElement
Overrides:
Finds a RadGridView from the target control that contains the provided element.
GetContainerFromItem(FrameworkElement, object)
DependencyObject
Returns the container for the specified item. When overridden in a derived class allows usage of custom ItemContainerGenerators.
protected override DependencyObject GetContainerFromItem(FrameworkElement control, object item)
DependencyObject
Overrides:
When overridden in a derived class this method returns the items that should be dragged.
protected override IEnumerable<object> GetDraggedItems(FrameworkElement draggedItem)
The source control of the drag operation.
Returns:The items that should be dragged.
Overrides:
Returns the SelectedItems list of the RadGridView that contains the dragged row and adds the dragged row to the list if it is not already present there.
Returns a list containing the items of the specified control.
protected override IList GetItemsSource(FrameworkElement element)
Overrides:
Returns a list containing the items of the specified RadGridView.