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

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:

C#
public abstract class DragDropBehavior<T, ST>

Inheritance: objectDragDropBehavior<T, ST>

Derived Classes: ScheduleViewDragDropBehavior

Constructors

C#
protected DragDropBehavior()

Methods

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

C#
public virtual bool CanDrop(T state)
Parameters:stateT

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 performed or not.

C#
public virtual bool CanStartDrag(T state)
Parameters:stateT

DragDropState identifying the current drag operation.

Returns:

bool

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

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

Filter the dragged items.

C#
public abstract IEnumerable<ST> CoerceDraggedItems(T state)
Parameters:stateTReturns:

IEnumerable<ST>

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

C#
public abstract IEnumerable<ST> ConvertDraggedData(object data)
Parameters:dataobject

The data.

Returns:

IEnumerable<ST>

Performs canceling the drag operation.

C#
public abstract void DragDropCanceled(T state)
Parameters:stateT

The state.

Indicates the end of the drag operation.

C#
public abstract void DragDropCompleted(T state)
Parameters:stateT

Performs the drag operation.

C#
public abstract void Drop(T state)
Parameters:stateT

DragDropState identifying the current drag operation.

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