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