Class
ListBoxDragDropBehavior

Defines the drag and drop behavior in RadListBox control.

Definition

Namespace:Telerik.Windows.DragDrop.Behaviors

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class ListBoxDragDropBehavior : DragDropBehavior<DragDropState>, IDragDropBehavior<DragDropState>

Inheritance: objectDragDropBehavior<DragDropState>ListBoxDragDropBehavior

Implements: IDragDropBehavior<DragDropState>

Inherited Members DragDropBehavior<DragDropState>.ItemTypePropertyDragDropBehavior<DragDropState>.GetDragDropEffects(DragDropState)DragDropBehavior<DragDropState>.CanDrop(DragDropState)DragDropBehavior<DragDropState>.Drop(DragDropState)DragDropBehavior<DragDropState>.CopyDraggedItems(DragDropState)DragDropBehavior<DragDropState>.DragDropCanceled(DragDropState)DragDropBehavior<DragDropState>.DragDropCompleted(DragDropState)DragDropBehavior<DragDropState>.CoerceDraggedItems(DragDropState)DragDropBehavior<DragDropState>.RemoveItems(IList, IEnumerable)DragDropBehavior<DragDropState>.InsertItems(IList, int, IEnumerable)DragDropBehavior<DragDropState>.IsMovingItems(DragDropState)DragDropBehavior<DragDropState>.ItemTypeDragDropBehavior<DragDropState>.AllowReorder

Constructors

ListBoxDragDropBehavior()

Initializes a new instance of the ListBoxDragDropBehavior class.

Declaration

cs-api-definition
public ListBoxDragDropBehavior()

Methods

CanStartDrag(DragDropState)

Returns a value specifying whether the drag operation can be started. A NotSupportedException is thrown when the dragged items are of type RadListBoxItem and the DragVisualProvider is set to either DefaultDragVisualProvider or ListBoxDragVisualProvider

Declaration

cs-api-definition
public override bool CanStartDrag(DragDropState state)

Parameters

state

DragDropState

DragDropState that provides context for the current operation.

Returns

bool

True if the drag operation can be completed, otherwise false.

Overrides DragDropBehavior<DragDropState>.CanStartDrag(DragDropState)

Remarks

This method is called only in the context of the drag source control.