skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Interface IDraggingService

The service supporting the translation of diagram items.

Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll

Syntax

public interface IDraggingService
Remarks

Note that this service can be customized and plugged into the ServiceLocator.

Properties

DraggingModels

Gets the currently dragging models if any.

Declaration
IEnumerable<IDiagramItem> DraggingModels { get; }
Property Value
System.Collections.Generic.IEnumerable<IDiagramItem>

The dragging models.

DragOverShape

Gets the currently drag over shape.

Declaration
IDragDropAware DragOverShape { get; }
Property Value
IDragDropAware

The drag over shape.

IsDragging

Determines whether there's a dragging operation in progress.

Declaration
bool IsDragging { get; }
Property Value
System.Boolean

Methods

CanDrag(Point)

Determines whether you can drag to the new point.

Declaration
bool CanDrag(Point newPoint)
Parameters
System.Windows.Point newPoint

The new point.

Returns
System.Boolean

CompleteDrag()

Completes the drag.

Declaration
void CompleteDrag()

CreateAsyncDragCommand(IUndoRedoService, IEnumerable<IDiagramItem>)

Creates the async drag command.

Declaration
CompositeAsyncStateCommand CreateAsyncDragCommand(IUndoRedoService undoRedoService, IEnumerable<IDiagramItem> items)
Parameters
IUndoRedoService undoRedoService

The undo redo service.

System.Collections.Generic.IEnumerable<IDiagramItem> items

The items affected.

Returns
CompositeAsyncStateCommand

Drag(Point)

Drags to the specified new point.

Declaration
void Drag(Point newPoint)
Parameters
System.Windows.Point newPoint

The new point.

InitializeDrag(Point)

Initializes the drag.

Declaration
void InitializeDrag(Point point)
Parameters
System.Windows.Point point

The drag start point.

StartDrag(IEnumerable<IDiagramItem>, Point)

Starts the drag.

Declaration
bool StartDrag(IEnumerable<IDiagramItem> models, Point currentPoint)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem> models

The models.

System.Windows.Point currentPoint

The current point.

Returns
System.Boolean

Events

CompleteDragging

Occurs on drag complete.

Declaration
event EventHandler<PositionChangedEventArgs> CompleteDragging
Event Type
System.EventHandler<PositionChangedEventArgs>

DragEnter

Occurs on drag enter.

Declaration
event EventHandler<DragItemsEventArgs> DragEnter
Event Type
System.EventHandler<DragItemsEventArgs>

Dragging

Occurs when dragging.

Declaration
event EventHandler<PositionChangedEventArgs> Dragging
Event Type
System.EventHandler<PositionChangedEventArgs>

DragLeave

Occurs on drag leave.

Declaration
event EventHandler<DragItemsEventArgs> DragLeave
Event Type
System.EventHandler<DragItemsEventArgs>

Drop

Occurs on drop.

Declaration
event EventHandler<DragItemsEventArgs> Drop
Event Type
System.EventHandler<DragItemsEventArgs>

StartDragging

Occurs on drag start.

Declaration
event EventHandler<CancelingPositionChangedEventArgs> StartDragging
Event Type
System.EventHandler<CancelingPositionChangedEventArgs>

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.