Class
DragDropBehavior<T, ST>

Represents a behavior of the drag & drop and resize functionality of the RadScheduleView control.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Type Parameters:

T

ST

Syntax:

cs-api-definition
public abstract class DragDropBehavior<T, ST>

Inheritance: objectDragDropBehavior<T, ST>

Derived Classes: ScheduleViewDragDropBehavior

Constructors

DragDropBehavior()

Declaration

cs-api-definition
protected DragDropBehavior()

Methods

CanDrop(T)

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

Declaration

cs-api-definition
public virtual bool CanDrop(T state)

Parameters

state

T

DragDropState identifying the current drag operation.

Returns

bool

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(T)

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

Declaration

cs-api-definition
public virtual bool CanStartDrag(T state)

Parameters

state

T

DragDropState identifying the current drag operation.

Returns

bool

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

Remarks

This is the second method called in a drag operation, right after ValidateDrag(). Only AppointmentsSource, Appointment and DraggedAppointments properties in the DragDropState are valid.

CoerceDraggedItems(T)

Filter the dragged items.

Declaration

cs-api-definition
public abstract IEnumerable<ST> CoerceDraggedItems(T state)

Parameters

state

T

Returns

IEnumerable<ST>

ConvertDraggedData(object)

Converts from data to dragged items when the drag enters over the target area.

Declaration

cs-api-definition
public abstract IEnumerable<ST> ConvertDraggedData(object data)

Parameters

data

object

The data.

Returns

IEnumerable<ST>

DragDropCanceled(T)

Performs canceling the drag operation.

Declaration

cs-api-definition
public abstract void DragDropCanceled(T state)

Parameters

state

T

The state.

DragDropCompleted(T)

Indicates the end of the drag operation.

Declaration

cs-api-definition
public abstract void DragDropCompleted(T state)

Parameters

state

T

Drop(T)

Performs the drag operation.

Declaration

cs-api-definition
public abstract void Drop(T state)

Parameters

state

T

DragDropState identifying the current drag operation.

Remarks

This method is called when the user releases the mouse button. All properties in the DragDropState are valid.