New to Telerik UI for WPF? Start a free 30-day trial

The base class for drag-drop operation behaviors for the scheduling controls.

Definition

Constructors

C#
public SchedulingDragDropBehavior()

Methods

Gets the value specifying whether the drag operation can be completed, or not.

C#
protected virtual bool CanDrop(SchedulingDragDropState state)
Parameters:stateSchedulingDragDropState

DragDropState identifying the current drag operation.

Returns:

bool

True when the drag operation can be finished, otherwise false.

This method is called on every mouse move. All properties in the DragDropState are valid.

Gets the value specifying whether the drag operation can be started, or not.

C#
protected virtual bool CanStartDrag(SchedulingDragDropState state)
Parameters:stateSchedulingDragDropState

DragDropState that provides context for the current operation.

Returns:

bool

True when the drag operation can be started, otherwise false.

This method is called only when the drag operation initiated.

Creates a new instance of the SchedulingDragDropBehavior class.

C#
protected override PlatformIndependentFreezable CreateInstanceOverride()
Returns:

PlatformIndependentFreezable

The new SchedulingDragDropBehavior instance.

Overrides: PlatformIndependentFreezable.CreateInstanceOverride()

When overridden in a derived class completes the drop operation. This method is called only in the context of the drop target control.

C#
protected virtual void Drop(SchedulingDragDropState state)
Parameters:stateSchedulingDragDropState

DragDropState that provides context for the current operation.

When the drag source and the drop target are the same control, this method is called before DragCompleted.

Gets the drop position for the reorder based on the overlapping value.

C#
protected virtual DropRelativePosition GetReorderDropPosition(double overlappingValue)
Parameters:overlappingValuedouble

This value indicates how much the dragged item is over the destination item. This value is between 0 and 1.

Returns:

DropRelativePosition

Returns DropRelativePosition enum value.