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

Class RadDragDropService

Represents a service that manages drag and drop actions.

Inheritance
System.Object
DisposableObject
RadObject
RadService
RadDragDropService
AppointmentDraggingBehavior
DetailListViewDragDropService
GanttViewDragDropService
LayoutControlDragDropService
ListControlDragDropService
ListViewDragDropService
PivotFieldListDragDropService
PivotGridDragDropService
RadGridViewDragDropService
RadPageViewDragDropService
RadTabbedFormDragDropService
RadTaskBoardDragDropService
TileDragDropService
TreeViewDragDropService
Inherited Members
RadService.CanOperate()
RadService.Start(Object)
RadService.Stop(Boolean)
RadService.Pause()
RadService.Resume()
RadService.OnStarted()
RadService.OnStarting(RadServiceStartingEventArgs)
RadService.OnStopped()
RadService.OnStopping(RadServiceStoppingEventArgs)
RadService.IsContextValid(Object)
RadService.Abort()
RadService.PerformResume()
RadService.PerformPause()
RadService.SetContext(Object)
RadService.OnEnabledChanged()
RadService.Context
RadService.AvailableAtDesignTime
RadService.State
RadService.Name
RadService.Enabled
RadService.Starting
RadService.Started
RadService.Stopping
RadService.Stopped
RadObject.BindingContextProperty
RadObject.RadType
RadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)
RadObject.ClearPropertyStore()
RadObject.SuspendPropertyNotifications()
RadObject.ResumePropertyNotifications()
RadObject.GetPropertyValue(RadProperty)
RadObject.SetDefaultValueOverride(RadProperty, Object)
RadObject.SetValueAtDesignTime(RadProperty, Object)
RadObject.GetValue(RadProperty)
RadObject.SetValue(RadProperty, Object)
RadObject.ResetValue(RadProperty)
RadObject.ResetLocalValue(RadProperty)
RadObject.ResetValue(RadProperty, ValueResetFlags)
RadObject.UpdateValue(RadProperty)
RadObject.GetValueSource(RadProperty)
RadObject.GetRegisteredRadProperty(String)
RadObject.UpdateValueCore(RadPropertyValue)
RadObject.SetValueCore(RadPropertyValue, Object, Object, ValueSource)
RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)
RadObject.GetDefaultValue(RadPropertyValue, Object)
RadObject.CoerceValue(RadPropertyValue, Object)
RadObject.ShouldSerializeProperty(PropertyDescriptor)
RadObject.ShouldSerializeProperty(RadProperty)
RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)
RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)
RadObject.UnbindProperty(RadProperty)
RadObject.AddStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(RadProperty)
RadObject.GetInheritedValue(RadProperty)
RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)
RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)
RadObject.OnNotifyPropertyChanged(String)
RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)
RadObject.IsPropertyCancelable(RadPropertyMetadata)
RadObject.PropertyValues
RadObject.IsDesignMode
RadObject.PropertyFilter
RadObject.RadObjectType
RadObject.BindingContext
RadObject.PropertyChanged
RadObject.RadPropertyChanged
RadObject.RadPropertyChanging
RadObject.ShouldSerializePropertyHandler
DisposableObject.GetBitState(Int64)
DisposableObject.SetBitState(Int64, Boolean)
DisposableObject.OnBitStateChanged(Int64, Boolean, Boolean)
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.PerformDispose(Boolean)
DisposableObject.DisposeUnmanagedResources()
DisposableObject.BitState
DisposableObject.Events
DisposableObject.IsDisposing
DisposableObject.IsDisposed
DisposableObject.Disposed
DisposableObject.Disposing
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class RadDragDropService : RadService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener

Constructors

RadDragDropService()

Initializes a new instance of the DragDropService class.

Declaration
public RadDragDropService()

Fields

beginPoint

Declaration
protected Point? beginPoint
Field Value
System.Nullable<System.Drawing.Point>

messageFilterAdded

Declaration
protected bool messageFilterAdded
Field Value
System.Boolean

xOutlineFormOffset

Declaration
protected int xOutlineFormOffset
Field Value
System.Int32

yOutlineFormOffset

Declaration
protected int yOutlineFormOffset
Field Value
System.Int32

Properties

CanCommit

Determines whether a drop operation will be committed (a valid drop target is found).

Declaration
protected bool CanCommit { get; }
Property Value
System.Boolean

DropLocation

Gets the current drop location in the context of the current target.

Declaration
public Point DropLocation { get; }
Property Value
System.Drawing.Point

DropTarget

Gets current drop target, where the mouse cursor points.

Declaration
public ISupportDrop DropTarget { get; }
Property Value
ISupportDrop

HintWindow

Gets the Hint window.

Declaration
protected RadLayeredWindow HintWindow { get; }
Property Value
RadLayeredWindow

The hint window.

Initialized

Declaration
protected bool Initialized { get; }
Property Value
System.Boolean

InvalidCursor

Gets or sets the cursor to be used when a valid drop target is hit-tested.

Declaration
public Cursor InvalidCursor { get; set; }
Property Value
System.Windows.Forms.Cursor

UseDefaultPreview

Determines whether a default preview is generated for a ISupportDrag instance if its GetPreview method returns null.

Declaration
public bool UseDefaultPreview { get; set; }
Property Value
System.Boolean

ValidCursor

Gets or sets the cursor to be used when a valid drop target is hit-tested.

Declaration
public Cursor ValidCursor { get; set; }
Property Value
System.Windows.Forms.Cursor

Methods

BeginDrag(Point, ISupportDrag)

Begins a drag pass. Allows for service automation.

Declaration
public void BeginDrag(Point mouseBeginPoint, ISupportDrag draggedObject)
Parameters
System.Drawing.Point mouseBeginPoint

The position of the mouse cursor in screen coordinates.

ISupportDrag draggedObject

An instance of IDraggable that is dragged.

CanStart(Object)

Declaration
protected override bool CanStart(object context)
Parameters
System.Object context

Returns
System.Boolean

Overrides
RadService.CanStart(Object)

Commit()

Declaration
protected override void Commit()
Overrides
RadService.Commit()

DisposeManagedResources()

Declaration
protected override void DisposeManagedResources()
Overrides
RadObject.DisposeManagedResources()

DoMouseMove(Point)

Mocks a mouse move to a specific point. Allows for service automation.

Declaration
public void DoMouseMove(Point mousePos)
Parameters
System.Drawing.Point mousePos

EndDrag()

Ends a drag pass. Allows for service automation.

Declaration
public void EndDrag()

EndDrag(Point, RadControl)

Ends a drag pass. Allows for service automation.

Declaration
public void EndDrag(Point mouseEndPoint, RadControl targetControl)
Parameters
System.Drawing.Point mouseEndPoint

The end position of the mouse cursor in screen coordinates.

RadControl targetControl

An instance of RadControl.

GetDropTarget(Point, out Point)

Declaration
protected virtual ISupportDrop GetDropTarget(Point mousePosition, out Point resultDropLocation)
Parameters
System.Drawing.Point mousePosition

System.Drawing.Point resultDropLocation

Returns
ISupportDrop

HandleEscKeyDown()

Declaration
protected virtual void HandleEscKeyDown()

HandleLeftButtonUp()

Declaration
protected virtual void HandleLeftButtonUp()

HandleMouseMove(Point)

Declaration
protected virtual void HandleMouseMove(Point mousePos)
Parameters
System.Drawing.Point mousePos

IsDropTargetValid(ISupportDrop)

Declaration
protected virtual bool IsDropTargetValid(ISupportDrop dropTarget)
Parameters
ISupportDrop dropTarget

Returns
System.Boolean

OnPreviewDragDrop(RadDropEventArgs)

Declaration
protected virtual void OnPreviewDragDrop(RadDropEventArgs e)
Parameters
RadDropEventArgs e

OnPreviewDragHint(PreviewDragHintEventArgs)

Declaration
protected virtual void OnPreviewDragHint(PreviewDragHintEventArgs e)
Parameters
PreviewDragHintEventArgs e

OnPreviewDragOver(RadDragOverEventArgs)

Declaration
protected virtual void OnPreviewDragOver(RadDragOverEventArgs e)
Parameters
RadDragOverEventArgs e

OnPreviewDragStart(PreviewDragStartEventArgs)

Declaration
protected virtual void OnPreviewDragStart(PreviewDragStartEventArgs e)
Parameters
PreviewDragStartEventArgs e

OnPreviewDropTarget(PreviewDropTargetEventArgs)

Declaration
protected virtual void OnPreviewDropTarget(PreviewDropTargetEventArgs e)
Parameters
PreviewDropTargetEventArgs e

PerformStart()

Declaration
protected override void PerformStart()
Overrides
RadService.PerformStart()

PerformStop()

Declaration
protected override void PerformStop()
Overrides
RadService.PerformStop()

PrepareContext()

Declaration
protected virtual bool PrepareContext()
Returns
System.Boolean

RestoreOriginalMouseCursor()

Declaration
protected virtual void RestoreOriginalMouseCursor()

SetHintWindowPosition(Point)

Declaration
protected virtual void SetHintWindowPosition(Point mousePt)
Parameters
System.Drawing.Point mousePt

ShouldBeginDrag(Point, Point)

Declaration
public static bool ShouldBeginDrag(Point current, Point capture)
Parameters
System.Drawing.Point current

System.Drawing.Point capture

Returns
System.Boolean

Events

PreviewDragDrop

Declaration
public event EventHandler<RadDropEventArgs> PreviewDragDrop
Event Type
System.EventHandler<RadDropEventArgs>

PreviewDragHint

Declaration
public event EventHandler<PreviewDragHintEventArgs> PreviewDragHint
Event Type
System.EventHandler<PreviewDragHintEventArgs>

PreviewDragOver

Declaration
public event EventHandler<RadDragOverEventArgs> PreviewDragOver
Event Type
System.EventHandler<RadDragOverEventArgs>

PreviewDragStart

Declaration
public event EventHandler<PreviewDragStartEventArgs> PreviewDragStart
Event Type
System.EventHandler<PreviewDragStartEventArgs>

PreviewDropTarget

Declaration
public event EventHandler<PreviewDropTargetEventArgs> PreviewDropTarget
Event Type
System.EventHandler<PreviewDropTargetEventArgs>

Explicit Interface Implementations

IMessageListener.DesiredHook

Declaration
InstalledHook IMessageListener.DesiredHook { get; }
Returns
InstalledHook

Implements
IMessageListener.DesiredHook

IMessageListener.PreviewMessage(ref Message)

Declaration
MessagePreviewResult IMessageListener.PreviewMessage(ref Message msg)
Parameters
System.Windows.Forms.Message msg

Returns
MessagePreviewResult

Implements
IMessageListener.PreviewMessage(ref Message)

IMessageListener.PreviewSystemMessage(SystemMessage, Message)

Declaration
void IMessageListener.PreviewSystemMessage(SystemMessage message, Message msg)
Parameters
SystemMessage message

System.Windows.Forms.Message msg

Implements
IMessageListener.PreviewSystemMessage(SystemMessage, Message)

IMessageListener.PreviewWndProc(Message)

Declaration
void IMessageListener.PreviewWndProc(Message msg)
Parameters
System.Windows.Forms.Message msg

Implements
IMessageListener.PreviewWndProc(Message)

Extension Methods

CommonExtensions.ClearIfNoBindingAndSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
CommonExtensions.SetIfDifferent(RadObject, RadProperty, Object)
CommonExtensions.ClearIfSet(RadObject, RadProperty)
CommonExtensions.IsLocalValueSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • 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.