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:
public abstract class DragDropBehavior<T, ST>
Inheritance: objectDragDropBehavior<T, ST>
Derived Classes:
Constructors
protected DragDropBehavior()
Methods
Gets the value specifying whether the drag operation can be finished, or not.
public virtual bool CanDrop(T state)
DragDropState identifying the current drag operation.
Returns: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.
public virtual bool CanStartDrag(T state)
DragDropState identifying the current drag operation.
Returns: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.
public abstract IEnumerable<ST> CoerceDraggedItems(T state)
IEnumerable<ST>
Converts from data to dragged items when the drag enters over the target area.
public abstract IEnumerable<ST> ConvertDraggedData(object data)
The data.
Returns:IEnumerable<ST>
Performs canceling the drag operation.
public abstract void DragDropCanceled(T state)
The state.
Indicates the end of the drag operation.
public abstract void DragDropCompleted(T state)
Performs the drag operation.
public abstract void Drop(T state)
DragDropState identifying the current drag operation.
This method is called when the user releases the mouse button. All properties in the DragDropState are valid.