DraggingService
Represents the Dragging service responsible for dragging operations in Diagram.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class DraggingService : GraphServiceBase, IDraggingService
Inheritance: objectGraphServiceBaseDraggingService
Implements:
Inherited Members
Constructors
Initializes a new instance of the DraggingService class.
Properties
DraggingModels
IEnumerable<IDiagramItem>
Gets the currently dragging models if any.
public IEnumerable<IDiagramItem> DraggingModels { get; }
The dragging models.
Implements:
Gets the currently drag over shape.
public IDragDropAware DragOverShape { get; }
The drag over shape.
Implements:
Determines whether there's a dragging operation in progress.
public bool IsDragging { get; }
Implements:
Methods
Completes the drag.
public virtual void CompleteDrag()
Implements:
Creates the async drag command which has to be completed at a later time. This method is used both by the Nudge keyboard handler and by the dragging tool.
public CompositeAsyncStateCommand CreateAsyncDragCommand(IUndoRedoService undoRedoService, IEnumerable<IDiagramItem> items)
The undo-redo service.
itemsIEnumerable<IDiagramItem>The items which are affected.
Returns:The undoable async command.
Implements:
Drags to the specified new point.
Initializes the drag.
public virtual void InitializeDrag(Point point)
The drag start point.
Implements:
Starts the drag.
public virtual bool StartDrag(IEnumerable<IDiagramItem> models, Point currentPoint)
The models.
currentPointPointThe current point.
Returns:Implements:
Events
Occurs on drag complete.
public event EventHandler<PositionChangedEventArgs> CompleteDragging
Implements:
Occurs on drag enter.
public event EventHandler<DragItemsEventArgs> DragEnter
Implements:
Occurs when dragging.
public event EventHandler<PositionChangedEventArgs> Dragging
Implements:
Occurs on drag leave.
public event EventHandler<DragItemsEventArgs> DragLeave
Implements:
Occurs on drop.
public event EventHandler<DragItemsEventArgs> Drop
Implements:
Occurs on drag start.
public event EventHandler<CancelingPositionChangedEventArgs> StartDragging
Implements: