Class
TaskBoardColumnDragDropHelper

Represents drag and drop helper for the TaskBoardColumnContainer control.

Definition

Namespace:Telerik.Windows.Controls.TaskBoard

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
[SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses")]
public class TaskBoardColumnDragDropHelper : DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>

Inheritance: objectDragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>TaskBoardColumnDragDropHelper

Inherited Members DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.GetItemsOfType(IEnumerable, Type)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.GetInferredItemType(IEnumerable)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.GetDraggedItems(FrameworkElement)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.GetItemsSource(FrameworkElement)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.GetContainerFromItem(FrameworkElement, object)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.CreateDragVisualProviderState(Point, FrameworkElement, DragDropState)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.FindDragSource(FrameworkElement)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.FindDraggedItem(FrameworkElement)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.FindDropItemsControl(FrameworkElement, object)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.FindDropTarget(FrameworkElement)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.GetItemType(FrameworkElement)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DragDropCompleted(FrameworkElement, object, Type, bool)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DragOver(FrameworkElement, FrameworkElement, object, Type)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DragLeave(FrameworkElement, FrameworkElement, object, Type)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.Drop(FrameworkElement, FrameworkElement, object, Type)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.CreateStateForDrop(FrameworkElement, FrameworkElement, object, Type)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.GetItemsFromDataObject(object, Type)DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DataConverterDragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DragDropBehaviorDragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DragVisualProvider

Constructors

TaskBoardColumnDragDropHelper()

Initializes a new instance of the TaskBoardColumnDragDropHelper class.

Declaration

cs-api-definition
public TaskBoardColumnDragDropHelper()

Methods

CreateStateForDrop(FrameworkElement, FrameworkElement, object, Type)

Creates and initializes a DragDropState from the provided DragEventArgs.

Declaration

cs-api-definition
protected override DragDropState CreateStateForDrop(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)

Parameters

dropTarget

FrameworkElement

dropItemsControl

FrameworkElement

data

object

itemType

Type

Returns

DragDropState

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.CreateStateForDrop(FrameworkElement, FrameworkElement, object, Type)

DragDropCompleted(FrameworkElement, object, Type, bool)

When overridden in a derived class allows calling custom code on the DragDropCompleted event.

Declaration

cs-api-definition
protected override void DragDropCompleted(FrameworkElement dropItemsControl, object data, Type itemType, bool wasCanceled)

Parameters

dropItemsControl

FrameworkElement

data

object

itemType

Type

wasCanceled

bool

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DragDropCompleted(FrameworkElement, object, Type, bool)

DragLeave(FrameworkElement, FrameworkElement, object, Type)

Hides the drop visual on mouse leave.

Declaration

cs-api-definition
protected override void DragLeave(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)

Parameters

dropTarget

FrameworkElement

The object that is being dropped.

dropItemsControl

FrameworkElement

The destination ItemsControl.

data

object

The drag and drop data.

itemType

Type

The data type of the dragged item.

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DragLeave(FrameworkElement, FrameworkElement, object, Type)

DragOver(FrameworkElement, FrameworkElement, object, Type)

When overridden in a derived class allows calling custom code on the DragOver event.

Declaration

cs-api-definition
protected override DragDropEffects DragOver(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)

Parameters

dropTarget

FrameworkElement

dropItemsControl

FrameworkElement

data

object

itemType

Type

Returns

DragDropEffects

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.DragOver(FrameworkElement, FrameworkElement, object, Type)

Drop(FrameworkElement, FrameworkElement, object, Type)

Drops the specified drop target.

Declaration

cs-api-definition
protected override void Drop(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)

Parameters

dropTarget

FrameworkElement

dropItemsControl

FrameworkElement

data

object

itemType

Type

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.Drop(FrameworkElement, FrameworkElement, object, Type)

FindDragSource(FrameworkElement)

Finds the ColumnContainer that contains the provided element.

Declaration

cs-api-definition
protected override FrameworkElement FindDragSource(FrameworkElement element)

Parameters

element

FrameworkElement

The element that raised the DragInitialize event.

Returns

FrameworkElement

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.FindDragSource(FrameworkElement)

FindDraggedItem(FrameworkElement)

Finds the TaskBoardItem that contains the provided element.

Declaration

cs-api-definition
protected override FrameworkElement FindDraggedItem(FrameworkElement element)

Parameters

element

FrameworkElement

The element that raised the DragInitialize event.

Returns

FrameworkElement

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.FindDraggedItem(FrameworkElement)

FindDropItemsControl(FrameworkElement, object)

Finds the ColumnContainer that should accept the dragged items.

Declaration

cs-api-definition
protected override FrameworkElement FindDropItemsControl(FrameworkElement element, object data)

Parameters

element

FrameworkElement

The element that raised the Drop event.

data

object

The DataObject for the current drag operation.

Returns

FrameworkElement

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.FindDropItemsControl(FrameworkElement, object)

FindDropTarget(FrameworkElement)

Finds a TaskBoardItem from the target control that contains the provided element.

Declaration

cs-api-definition
protected override FrameworkElement FindDropTarget(FrameworkElement element)

Parameters

element

FrameworkElement

The element that raised the Drop event.

Returns

FrameworkElement

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.FindDropTarget(FrameworkElement)

GetDraggedItems(FrameworkElement)

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.

Declaration

cs-api-definition
protected override IEnumerable<object> GetDraggedItems(FrameworkElement draggedItem)

Parameters

draggedItem

FrameworkElement

The source control of the drag operation.

Returns

IEnumerable<object>

The items that should be dragged.

Overrides DragDropHelper<TaskBoardColumnDragDropBehavior, DragDropState>.GetDraggedItems(FrameworkElement)

SetDropVisualPlaceholder(ContentPresenter)

Initialize the DragVisualPlaceholder used in the DragAndDrop operations.

Declaration

cs-api-definition
public void SetDropVisualPlaceholder(ContentPresenter dropVisualPlaceholder)

Parameters

dropVisualPlaceholder

ContentPresenter

SetDropVisualProvider(TaskBoardLinearDropVisualProvider)

Initialize the DropVisualProvider used in the DragAndDrop operations.

Declaration

cs-api-definition
public void SetDropVisualProvider(TaskBoardLinearDropVisualProvider dropVisualProvider)

Parameters

dropVisualProvider

TaskBoardLinearDropVisualProvider