ClassDraggingService
Represents the Dragging service responsible for dragging operations in Diagram.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public class DraggingService : GraphServiceBase, IDraggingService
Inheritance: objectGraphServiceBaseDraggingService
Implements:
Inherited Members
Constructors
DraggingService(IGraphInternal)
Initializes a new instance of the DraggingService class.
Declaration
public DraggingService(IGraphInternal graph)
Parameters
graph
The graph.
Properties
DragOverShape
Gets the currently drag over shape.
Declaration
public IDragDropAware DragOverShape { get; }
Property Value
The drag over shape.
Implements
DraggingModels
Gets the currently dragging models if any.
Declaration
public IEnumerable<IDiagramItem> DraggingModels { get; }
Property Value
The dragging models.
Implements
IsDragging
Determines whether there's a dragging operation in progress.
Methods
CanDrag(Point)
Determines whether you can drag to the new point.
Declaration
public virtual bool CanDrag(Point newPoint)
Parameters
newPoint
Point
The new point.
Returns
Implements
CompleteDrag()
Completes the drag.
Declaration
public virtual void CompleteDrag()
Implements
CreateAsyncDragCommand(IUndoRedoService, IEnumerable<IDiagramItem>)
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.
Declaration
public CompositeAsyncStateCommand CreateAsyncDragCommand(IUndoRedoService undoRedoService, IEnumerable<IDiagramItem> items)
Parameters
undoRedoService
The undo-redo service.
items
The items which are affected.
Returns
The undoable async command.
Implements
Drag(Point)
Drags to the specified new point.
Declaration
public virtual void Drag(Point newPoint)
Parameters
newPoint
Point
The new point.
Implements
InitializeDrag(Point)
Initializes the drag.
Declaration
public virtual void InitializeDrag(Point point)
Parameters
point
Point
The drag start point.
Implements
StartDrag(IEnumerable<IDiagramItem>, Point)
Starts the drag.
Declaration
public virtual bool StartDrag(IEnumerable<IDiagramItem> models, Point currentPoint)
Parameters
models
The models.
currentPoint
Point
The current point.
Returns
Implements
Events
CompleteDragging
Occurs on drag complete.
Declaration
public event EventHandler<PositionChangedEventArgs> CompleteDragging
Event Value
Implements
DragEnter
Occurs on drag enter.
Declaration
public event EventHandler<DragItemsEventArgs> DragEnter
Event Value
Implements
DragLeave
Occurs on drag leave.
Declaration
public event EventHandler<DragItemsEventArgs> DragLeave
Event Value
Implements
Dragging
Occurs when dragging.
Declaration
public event EventHandler<PositionChangedEventArgs> Dragging
Event Value
Implements
Drop
Occurs on drop.
Declaration
public event EventHandler<DragItemsEventArgs> Drop
Event Value
Implements
StartDragging
Occurs on drag start.
Declaration
public event EventHandler<CancelingPositionChangedEventArgs> StartDragging
Event Value
Implements