ClassSchedulingDragDropBehavior
The base class for drag-drop operation behaviors for the scheduling controls.
Definition
Namespace:Telerik.Windows.Controls.Scheduling
Assembly:Telerik.Windows.Scheduling.Core.dll
Syntax:
public class SchedulingDragDropBehavior : SchedulingBehaviorBase, ISchedulingDragDropBehavior
Inheritance: objectPlatformIndependentFreezableSchedulingBehaviorBaseSchedulingDragDropBehavior
Derived Classes:
Implements:
Inherited Members
Constructors
SchedulingDragDropBehavior()
Declaration
public SchedulingDragDropBehavior()
Methods
CanDrop(SchedulingDragDropState)
Gets the value specifying whether the drag operation can be completed, or not.
Declaration
protected virtual bool CanDrop(SchedulingDragDropState state)
Parameters
state
DragDropState identifying the current drag operation.
Returns
True when the drag operation can be finished, otherwise false.
Remarks
This method is called on every mouse move. All properties in the DragDropState are valid.
CanStartDrag(SchedulingDragDropState)
Gets the value specifying whether the drag operation can be started, or not.
Declaration
protected virtual bool CanStartDrag(SchedulingDragDropState state)
Parameters
state
DragDropState that provides context for the current operation.
Returns
True when the drag operation can be started, otherwise false.
Remarks
This method is called only when the drag operation initiated.
CreateInstanceOverride()
Creates a new instance of the SchedulingDragDropBehavior class.
Declaration
protected override PlatformIndependentFreezable CreateInstanceOverride()
Returns
The new SchedulingDragDropBehavior instance.
Overrides
Drop(SchedulingDragDropState)
When overridden in a derived class completes the drop operation. This method is called only in the context of the drop target control.
Declaration
protected virtual void Drop(SchedulingDragDropState state)
Parameters
state
DragDropState that provides context for the current operation.
Remarks
When the drag source and the drop target are the same control, this method is called before DragCompleted.
GetReorderDropPosition(double)
Gets the drop position for the reorder based on the overlapping value.
Declaration
protected virtual DropRelativePosition GetReorderDropPosition(double overlappingValue)
Parameters
overlappingValue
This value indicates how much the dragged item is over the destination item. This value is between 0 and 1.
Returns
Returns DropRelativePosition enum value.