A RadDragDropService responsible for the drag operations in RadLayoutControl.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LayoutControlDragDropService : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener
Inheritance: objectDisposableObjectRadObjectRadServiceRadDragDropServiceLayoutControlDragDropService...
Implements:
Inherited Members
Constructors
Creates a drag service for a layout control and its customization overlay.
public LayoutControlDragDropService(RadLayoutControl owner, LayoutControlDraggableOverlay overlay)
The layout control whose items are moved or hidden.
overlayLayoutControlDraggableOverlayThe overlay that displays drag previews.
Methods
Updates the drag hint after processing the pointer movement.
protected override void HandleMouseMove(Point mousePos)
The current pointer location.
Overrides:
Clears the overlay's drag-preview rectangle.
protected virtual void HideDragHint()
Rejects drops while the pointer is within the dragged visual's bounds; rejects that visual as a target, accepts other draggable layout items directly, and delegates non-layout targets to the base service.
protected override bool IsDropTargetValid(ISupportDrop dropTarget)
The element considered as the drop target.
Returns:true when the target passes these checks and base validation; otherwise, false.
Overrides:
Unless base handling has already consumed the event, moves the item into a layout target or hides it when dropped on an allowed list-view target.
protected override void OnPreviewDragDrop(RadDropEventArgs e)
The drop data, including the hit target and drop location.
Overrides:
Applies layout-specific validation to list-view drop targets and hides the drag hint for rejected targets.
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
The drag-over data, including the hit target and drop-acceptance flag.
Overrides:
Captures the drag context as a draggable layout item and cancels the operation if it is not one.
protected override void PerformStart()
Overrides:
Clears the drag preview after the drag operation stops.
protected override void PerformStop()
Overrides:
Updates the insertion preview for layout targets or selects the delete cursor for an allowed list-view target. Clears the preview when the current drag cannot be committed.
protected virtual void UpdateDragHintLocation(Point mousePosition)
The current pointer location.