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