Represents drag and drop helper for the TaskBoardColumnContainer control.
Definition
Namespace:Telerik.Windows.Controls.TaskBoard
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class TaskBoardColumnDragDropHelper : DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>
Inheritance: objectDragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>TaskBoardColumnDragDropHelper
Inherited Members
Constructors
Initializes a new instance of the TaskBoardColumnDragDropHelper class.
public TaskBoardColumnDragDropHelper()
Methods
Creates and initializes a DragDropState from the provided DragEventArgs.
When overridden in a derived class allows calling custom code on the DragDropCompleted event.
Hides the drop visual on mouse leave.
protected override void DragLeave(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)
The object that is being dropped.
dropItemsControlFrameworkElementThe destination ItemsControl.
dataobjectThe drag and drop data.
itemTypeTypeThe data type of the dragged item.
Overrides:
DragOver(FrameworkElement, FrameworkElement, object, Type)
DragDropEffects
When overridden in a derived class allows calling custom code on the DragOver event.
FindDraggedItem(FrameworkElement)
FrameworkElement
Finds the TaskBoardItem 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 ColumnContainer that contains the provided element.
protected override FrameworkElement FindDragSource(FrameworkElement element)
The element that raised the DragInitialize event.
Returns:FrameworkElement
Overrides:
FindDropItemsControl(FrameworkElement, object)
FrameworkElement
Finds the ColumnContainer that should accept the dragged items.
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:
FindDropTarget(FrameworkElement)
FrameworkElement
Finds a TaskBoardItem from the target control that contains the provided element.
protected override FrameworkElement FindDropTarget(FrameworkElement element)
The element that raised the Drop event.
Returns:FrameworkElement
Overrides:
Returns the SelectedItems list of the TaskBoard that contains the dragged item and adds the dragged item to the list if it is not already present there.
protected override IEnumerable<object> GetDraggedItems(FrameworkElement draggedItem)
The source control of the drag operation.
Returns:The items that should be dragged.
Overrides:
Initialize the DragVisualPlaceholder used in the DragAndDrop operations.
public void SetDropVisualPlaceholder(ContentPresenter dropVisualPlaceholder)
Initialize the DropVisualProvider used in the DragAndDrop operations.
public void SetDropVisualProvider(TaskBoardLinearDropVisualProvider dropVisualProvider)