Class DragDropBehavior<T, ST>
Represents a behavior of the drag & drop and resize functionality of the RadScheduleView control.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public abstract class DragDropBehavior<T, ST>
Type Parameters
T
|
ST
|
Constructors
DragDropBehavior()
Declaration
protected DragDropBehavior()
Methods
CanDrop(T)
Gets the value specifying whether the drag operation can be finished, or not.
Declaration
public virtual bool CanDrop(T state)
Parameters
T
state
DragDropState identifying the current drag operation. |
Returns
System.Boolean
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
public virtual bool CanStartDrag(T state)
Parameters
T
state
DragDropState identifying the current drag operation. |
Returns
System.Boolean
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
public abstract IEnumerable<ST> CoerceDraggedItems(T state)
Parameters
T
state
|
Returns
System.Collections.Generic.IEnumerable<ST>
|
ConvertDraggedData(Object)
Converts from data to dragged items when the drag enters over the target area.
Declaration
public abstract IEnumerable<ST> ConvertDraggedData(object data)
Parameters
System.Object
data
The data. |
Returns
System.Collections.Generic.IEnumerable<ST>
|
DragDropCanceled(T)
Performs canceling the drag operation.
Declaration
public abstract void DragDropCanceled(T state)
Parameters
T
state
The state. |
DragDropCompleted(T)
Indicates the end of the drag operation.
Declaration
public abstract void DragDropCompleted(T state)
Parameters
T
state
|
Drop(T)
Performs the drag operation.
Declaration
public abstract void Drop(T state)
Parameters
T
state
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.