IDraggingService
The service supporting the translation of diagram items.
Note that this service can be customized and plugged into the ServiceLocator.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public interface IDraggingService
Derived Classes:
Properties
Gets the currently dragging models if any.
IEnumerable<IDiagramItem> DraggingModels { get; }
The dragging models.
Gets the currently drag over shape.
IDragDropAware DragOverShape { get; }
The drag over shape.
Determines whether there's a dragging operation in progress.
bool IsDragging { get; }
Methods
Determines whether you can drag to the new point.
Completes the drag.
void CompleteDrag()
Creates the async drag command.
CompositeAsyncStateCommand CreateAsyncDragCommand(IUndoRedoService undoRedoService, IEnumerable<IDiagramItem> items)
The undo redo service.
itemsIEnumerable<IDiagramItem>The items affected.
Returns:Drags to the specified new point.
void Drag(Point newPoint)
The new point.
Initializes the drag.
void InitializeDrag(Point point)
The drag start point.
Starts the drag.
bool StartDrag(IEnumerable<IDiagramItem> models, Point currentPoint)
The models.
currentPointPointThe current point.
Returns:Events
Occurs on drag complete.
event EventHandler<PositionChangedEventArgs> CompleteDragging
Occurs on drag enter.
event EventHandler<DragItemsEventArgs> DragEnter
Occurs when dragging.
event EventHandler<PositionChangedEventArgs> Dragging
Occurs on drag leave.
event EventHandler<DragItemsEventArgs> DragLeave
Occurs on drop.
event EventHandler<DragItemsEventArgs> Drop
Occurs on drag start.
event EventHandler<CancelingPositionChangedEventArgs> StartDragging