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 ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    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 UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DragDropManager

Provides helper methods and fields for initiating drag-and-drop operations, including a method to begin a drag-and-drop operation, and facilities for adding and removing drag-and-drop related event handlers.

Inheritance
System.Object
DragDropManager
Inherited Members
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.Windows.DragDrop
Assembly: Telerik.Windows.Controls.dll

Syntax

public static class DragDropManager

Fields

AllowCapturedDragProperty

Identifies the AllowCapturedDrag attached dependency property.

Declaration
public static readonly DependencyProperty AllowCapturedDragProperty
Field Value
System.Windows.DependencyProperty

AllowDragProperty

Identifies the AllowDrag attached dependency property.

Declaration
public static readonly DependencyProperty AllowDragProperty
Field Value
System.Windows.DependencyProperty

TouchDragTriggerProperty

Identifies the TouchDragTrigger attached dependency property.

Declaration
[Obsolete("Obsoleted with 2017 R1. Use Telerik.Windows.Input.Touch.TouchManager's DragStartTrigger instead.", false)]
public static readonly DependencyProperty TouchDragTriggerProperty
Field Value
System.Windows.DependencyProperty

Properties

DefaultDragDropEffects

Gets or sets the AllowedEffect for a drag-and-drop operation if such are not specified in DragInitialize event arguments.

Declaration
public static DragDropEffects DefaultDragDropEffects { get; set; }
Property Value
System.Windows.DragDropEffects

IsDragInProgress

Gets a value indicating whether a drag is in progress.

Declaration
public static bool IsDragInProgress { get; }
Property Value
System.Boolean

IsFullTrust

Gets whether application have FullTrust permissions.

Declaration
public static bool IsFullTrust { get; }
Property Value
System.Boolean

MinimumHorizontalDragDistance

Gets or sets the width of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins. The default value is 4.0.

Declaration
public static double MinimumHorizontalDragDistance { get; set; }
Property Value
System.Double

MinimumVerticalDragDistance

Gets or sets the height of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins.

Declaration
public static double MinimumVerticalDragDistance { get; set; }
Property Value
System.Double

UseAdornerLayer

Gets or sets a value that indicates whether drag visual will be displayed in the adorner layer or in separate window.

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

Methods

AddDragDropCompletedHandler(DependencyObject, DragDropCompletedEventHandler)

Adds a DragDropCompleted event handler to a specified dependency object.

Declaration
public static void AddDragDropCompletedHandler(DependencyObject element, DragDropCompletedEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragDropCompletedEventHandler handler

A delegate that references the handler method to be added.

Remarks

The DragDropCompleted event occurs when an drag-and-drop operation ends(On Drop or Cancel).

AddDragDropCompletedHandler(DependencyObject, DragDropCompletedEventHandler, Boolean)

Adds a DragDropCompleted event handler to a specified dependency object.

Declaration
public static void AddDragDropCompletedHandler(DependencyObject element, DragDropCompletedEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragDropCompletedEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The DragDropCompleted event occurs when an drag-and-drop operation ends(On Drop or Cancel).

AddDragEnterHandler(DependencyObject, DragEventHandler)

Adds a DragEnter event handler to a specified dependency object.

Declaration
public static void AddDragEnterHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The DragEnter event occurs when an object is dragged into the element's bounds. This method adds a handler for the bubbling version of the DragEnter event. To add a handler for the tunneling version of this event, see AddPreviewDragEnterHandler.

AddDragEnterHandler(DependencyObject, DragEventHandler, Boolean)

Adds a DragEnter event handler to a specified dependency object.

Declaration
public static void AddDragEnterHandler(DependencyObject element, DragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The DragEnter event occurs when an object is dragged into the element's bounds. This method adds a handler for the bubbling version of the DragEnter event. To add a handler for the tunneling version of this event, see AddPreviewDragEnterHandler.

AddDragInitializeHandler(DependencyObject, DragInitializeEventHandler)

Adds a DragInitialize event handler to a specified dependency object.

Declaration
public static void AddDragInitializeHandler(DependencyObject element, DragInitializeEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragInitializeEventHandler handler

A delegate that references the handler method to be added.

Remarks

The DragInitialize event occurs when an object is about to be dragged. All needed information about the drag should be passed to the event arguments. Drag start can be stopped by setting Cancel=true.

AddDragInitializeHandler(DependencyObject, DragInitializeEventHandler, Boolean)

Adds a DragInitialize event handler to a specified dependency object.

Declaration
public static void AddDragInitializeHandler(DependencyObject element, DragInitializeEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragInitializeEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The DragInitialize event occurs when an object is about to be dragged. All needed information about the drag should be passed to the event arguments. Drag start can be stopped by setting Cancel=true.

AddDragLeaveHandler(DependencyObject, DragEventHandler)

Adds a DragLeave event handler to a specified dependency object.

Declaration
public static void AddDragLeaveHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The DragLeave event occurs when an object is dragged out of the element's bounds. This method adds a handler for the bubbling version of the DragLeave event. To add a handler for the tunneling version of this event, see AddPreviewDragLeaveHandler.

AddDragLeaveHandler(DependencyObject, DragEventHandler, Boolean)

Adds a DragLeave event handler to a specified dependency object.

Declaration
public static void AddDragLeaveHandler(DependencyObject element, DragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The DragLeave event occurs when an object is dragged out of the element's bounds. This method adds a handler for the bubbling version of the DragLeave event. To add a handler for the tunneling version of this event, see AddPreviewDragLeaveHandler.

AddDragOverHandler(DependencyObject, DragEventHandler)

Adds a DragOver event handler to a specified dependency object.

Declaration
public static void AddDragOverHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The DragOver event occurs when an object is dragged over the element's bounds. This method adds a handler for the bubbling version of the DragOver event. To add a handler for the tunneling version of this event, see AddPreviewDragOverHandler.

AddDragOverHandler(DependencyObject, DragEventHandler, Boolean)

Adds a DragOver event handler to a specified dependency object.

Declaration
public static void AddDragOverHandler(DependencyObject element, DragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The DragOver event occurs when an object is dragged over the element's bounds. This method adds a handler for the bubbling version of the DragOver event. To add a handler for the tunneling version of this event, see AddPreviewDragOverHandler.

AddDropHandler(DependencyObject, DragEventHandler)

Adds a Drop event handler to a specified dependency object.

Declaration
public static void AddDropHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The Drop event occurs when an object is dropped within an element's bounds. This method adds a handler for the bubbling version of the Drop event. To add a handler for the tunneling version of this event, see AddPreviewDropHandler.

AddDropHandler(DependencyObject, DragEventHandler, Boolean)

Adds a Drop event handler to a specified dependency object.

Declaration
public static void AddDropHandler(DependencyObject element, DragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The Drop event occurs when an object is dropped within an element's bounds. This method adds a handler for the bubbling version of the Drop event. To add a handler for the tunneling version of this event, see AddPreviewDropHandler.

AddGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler)

Adds a GiveFeedback event handler to a specified dependency object.

Declaration
public static void AddGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

GiveFeedbackEventHandler handler

A delegate that references the handler method to be added.

Remarks

The GiveFeedback event occurs during a drag operation. This method adds a handler for the bubbling version of the GiveFeedback event. To add a handler for the tunneling version of this event, see AddPreviewGiveFeedbackHandler.

AddGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler, Boolean)

Adds a GiveFeedback event handler to a specified dependency object.

Declaration
public static void AddGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

GiveFeedbackEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The GiveFeedback event occurs during a drag operation. This method adds a handler for the bubbling version of the GiveFeedback event. To add a handler for the tunneling version of this event, see AddPreviewGiveFeedbackHandler.

AddPreviewDragEnterHandler(DependencyObject, DragEventHandler)

Adds a PreviewDragEnter event handler to a specified dependency object.

Declaration
public static void AddPreviewDragEnterHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The PreviewDragEnter event occurs when an object is dragged into the element's bounds. This method adds a handler for the tunneling version of the PreviewDragEnter event. To add a handler for the bubbling version of this event, see AddDragEnterHandler.

AddPreviewDragEnterHandler(DependencyObject, DragEventHandler, Boolean)

Adds a PreviewDragEnter event handler to a specified dependency object.

Declaration
public static void AddPreviewDragEnterHandler(DependencyObject element, DragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The PreviewDragEnter event occurs when an object is dragged into the element's bounds. This method adds a handler for the tunneling version of the PreviewDragEnter event. To add a handler for the bubbling version of this event, see AddDragEnterHandler.

AddPreviewDragLeaveHandler(DependencyObject, DragEventHandler)

Adds a PreviewDragLeave event handler to a specified dependency object.

Declaration
public static void AddPreviewDragLeaveHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The PreviewDragLeave event occurs when an object is dragged out of the element's bounds. This method adds a handler for the tunneling version of the PreviewDragLeave event. To add a handler for the bubbling version of this event, see AddDragLeaveHandler.

AddPreviewDragLeaveHandler(DependencyObject, DragEventHandler, Boolean)

Adds a PreviewDragLeave event handler to a specified dependency object.

Declaration
public static void AddPreviewDragLeaveHandler(DependencyObject element, DragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The PreviewDragLeave event occurs when an object is dragged out of the element's bounds. This method adds a handler for the tunneling version of the PreviewDragLeave event. To add a handler for the bubbling version of this event, see AddDragLeaveHandler.

AddPreviewDragOverHandler(DependencyObject, DragEventHandler)

Adds a PreviewDragOver event handler to a specified dependency object.

Declaration
public static void AddPreviewDragOverHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The PreviewDragOver event occurs when an object is dragged over the element's bounds. This method adds a handler for the tunneling version of the PreviewDragOver event. To add a handler for the bubbling version of this event, see AddDragOverHandler.

AddPreviewDragOverHandler(DependencyObject, DragEventHandler, Boolean)

Adds a PreviewDragOver event handler to a specified dependency object.

Declaration
public static void AddPreviewDragOverHandler(DependencyObject element, DragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The PreviewDragOver event occurs when an object is dragged over the element's bounds. This method adds a handler for the tunneling version of the PreviewDragOver event. To add a handler for the bubbling version of this event, see AddDragOverHandler.

AddPreviewDropHandler(DependencyObject, DragEventHandler)

Adds a PreviewDrop event handler to a specified dependency object.

Declaration
public static void AddPreviewDropHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The PreviewDrop event occurs when an object is dropped within an element's bounds. This method adds a handler for the tunneling version of the PreviewDrop event. To add a handler for the bubbling version of this event, see AddDropHandler.

AddPreviewDropHandler(DependencyObject, DragEventHandler, Boolean)

Adds a PreviewDrop event handler to a specified dependency object.

Declaration
public static void AddPreviewDropHandler(DependencyObject element, DragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

DragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The PreviewDrop event occurs when an object is dropped within an element's bounds. This method adds a handler for the tunneling version of the PreviewDrop event. To add a handler for the bubbling version of this event, see AddDropHandler.

AddPreviewGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler)

Adds a PreviewGiveFeedback event handler to a specified dependency object.

Declaration
public static void AddPreviewGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

GiveFeedbackEventHandler handler

A delegate that references the handler method to be added.

Remarks

The PreviewGiveFeedback event occurs during a drag operation. This method adds a handler for the tunneling version of the PreviewGiveFeedback event. To add a handler for the bubbling version of this event, see AddGiveFeedbackHandler.

AddPreviewGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler, Boolean)

Adds a PreviewGiveFeedback event handler to a specified dependency object.

Declaration
public static void AddPreviewGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

GiveFeedbackEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The PreviewGiveFeedback event occurs during a drag operation. This method adds a handler for the tunneling version of the PreviewGiveFeedback event. To add a handler for the bubbling version of this event, see AddGiveFeedbackHandler.

AddPreviewQueryContinueDragHandler(DependencyObject, QueryContinueDragEventHandler)

Adds a PreviewQueryContinueDrag event handler to a specified dependency object.

Declaration
public static void AddPreviewQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

QueryContinueDragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The PreviewQueryContinueDrag event occurs during a drag-and-drop operation, and enables the drag source to determine whether the drag-and-drop operation should be canceled. This method adds a handler for the tunneling version of the PreviewQueryContinueDrag event. To add a handler for the bubbling version of this event, see AddQueryContinueDragHandler.

AddPreviewQueryContinueDragHandler(DependencyObject, QueryContinueDragEventHandler, Boolean)

Adds a PreviewQueryContinueDrag event handler to a specified dependency object.

Declaration
public static void AddPreviewQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

QueryContinueDragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The PreviewQueryContinueDrag event occurs during a drag-and-drop operation, and enables the drag source to determine whether the drag-and-drop operation should be canceled. This method adds a handler for the tunneling version of the PreviewQueryContinueDrag event. To add a handler for the bubbling version of this event, see AddQueryContinueDragHandler.

AddQueryContinueDragHandler(DependencyObject, QueryContinueDragEventHandler)

Adds a QueryContinueDrag event handler to a specified dependency object.

Declaration
public static void AddQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

QueryContinueDragEventHandler handler

A delegate that references the handler method to be added.

Remarks

The QueryContinueDrag event occurs during a drag-and-drop operation, and enables the drag source to determine whether the drag-and-drop operation should be canceled. This method adds a handler for the tunneling version of the QueryContinueDrag event. To add a handler for the bubbling version of this event, see AddPreviewQueryContinueDragHandler.

AddQueryContinueDragHandler(DependencyObject, QueryContinueDragEventHandler, Boolean)

Adds a QueryContinueDrag event handler to a specified dependency object.

Declaration
public static void AddQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler, bool handledEventsToo)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) to which to add the event handler.

QueryContinueDragEventHandler handler

A delegate that references the handler method to be added.

System.Boolean handledEventsToo

True to register the handler such that it is invoked even when the routed event is marked handled in its event data; false to register the handler with the default condition that it will not be invoked if the routed event is already marked handled. The default is false.

Remarks

The QueryContinueDrag event occurs during a drag-and-drop operation, and enables the drag source to determine whether the drag-and-drop operation should be canceled. This method adds a handler for the tunneling version of the QueryContinueDrag event. To add a handler for the bubbling version of this event, see AddPreviewQueryContinueDragHandler.

DoDragDrop(DependencyObject, Object, DragDropEffects, DragDropKeyStates)

Initiates a drag-and-drop operation.

Declaration
public static void DoDragDrop(DependencyObject dragSource, object data, DragDropEffects allowedEffects, DragDropKeyStates initialKeyState)
Parameters
System.Windows.DependencyObject dragSource

A reference to the dependency object that is the source of the data being dragged.

System.Object data

A data object that contains the data being dragged.

System.Windows.DragDropEffects allowedEffects

One of the System.Windows.DragDropEffects values that specifies permitted effects of the drag-and-drop operation.

System.Windows.DragDropKeyStates initialKeyState

The initial key state when the drag operation begins.

DoDragDrop(DependencyObject, Object, DragDropEffects, DragDropKeyStates, Object, Point, Point)

Initiates a drag-and-drop operation.

Declaration
public static void DoDragDrop(DependencyObject dragSource, object data, DragDropEffects allowedEffects, DragDropKeyStates initialKeyState, object dragVisual, Point relativeStartPoint, Point dragVisualOffset)
Parameters
System.Windows.DependencyObject dragSource

A reference to the dependency object that is the source of the data being dragged.

System.Object data

A data object that contains the data being dragged.

System.Windows.DragDropEffects allowedEffects

One of the System.Windows.DragDropEffects values that specifies permitted effects of the drag-and-drop operation.

System.Windows.DragDropKeyStates initialKeyState

The initial key state when the drag operation begins.

System.Object dragVisual

The object to show while drag-and-drop operation is in progress.

System.Windows.Point relativeStartPoint

Cursor offset relative to dragSource element.

System.Windows.Point dragVisualOffset

DragVisual offset relative to dragSource element.

GetAllowCapturedDrag(DependencyObject)

Gets a value indicating whether this element can raise DragInitialize event and be used as the source of a drag-and-drop operation.

Declaration
public static bool GetAllowCapturedDrag(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The object from which the property value is read.

Returns
System.Boolean

True if element can start automatic drag-and-drop operation, otherwise False. The default value is False.

GetAllowDrag(DependencyObject)

Gets a value indicating whether this element can raise DragInitialize event and be used as the source of a drag-and-drop operation.

Declaration
public static bool GetAllowDrag(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The object from which the property value is read.

Returns
System.Boolean

True if element can start automatic drag-and-drop operation, otherwise False. The default value is False.

GetTouchDragTrigger(DependencyObject)

Gets a value indicating whether this element can raise DragInitialize event and be used as the source of a drag-and-drop operation.

Declaration
[Obsolete("Obsoleted with 2017 R1. Use Telerik.Windows.Input.Touch.TouchManager's DragStartTrigger instead.", false)]
public static TouchDragTrigger GetTouchDragTrigger(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The object from which the property value is read.

Returns
TouchDragTrigger

True if element can start automatic drag-and-drop operation, otherwise False. The default value is False.

RemoveDragDropCompletedHandler(DependencyObject, DragDropCompletedEventHandler)

Removes a DragDropCompleted event handler from a specified dependency object.

Declaration
public static void RemoveDragDropCompletedHandler(DependencyObject element, DragDropCompletedEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragDropCompletedEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The DragDropCompleted event occurs when an drag-and-drop operation ends(On Drop or Cancel).

RemoveDragEnterHandler(DependencyObject, DragEventHandler)

Removes a DragEnter event handler from a specified dependency object.

Declaration
public static void RemoveDragEnterHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The DragEnter event occurs when an object is dragged into the element's bounds. This method removes a handler for the bubbling version of the DragEnter event. To remove a handler for the tunneling version of this event, see RemovePreviewDragEnterHandler.

RemoveDragInitializeHandler(DependencyObject, DragInitializeEventHandler)

Removes a DragInitialize event handler from a specified dependency object.

Declaration
public static void RemoveDragInitializeHandler(DependencyObject element, DragInitializeEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragInitializeEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The DragInitialize event occurs when an object is about to be dragged. All needed information about the drag should be passed to the event arguments. Drag start can be stopped by setting Cancel=true.

RemoveDragLeaveHandler(DependencyObject, DragEventHandler)

Removes a DragLeave event handler from a specified dependency object.

Declaration
public static void RemoveDragLeaveHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The DragLeave event occurs when an object is dragged out of the element's bounds. This method removes a handler for the bubbling version of the DragLeave event. To remove a handler for the tunneling version of this event, see RemovePreviewDragLeaveHandler.

RemoveDragOverHandler(DependencyObject, DragEventHandler)

Removes a DragOver event handler from a specified dependency object.

Declaration
public static void RemoveDragOverHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The DragOver event occurs when an object is dragged over the element's bounds. This method removes a handler for the bubbling version of the DragOver event. To remove a handler for the tunneling version of this event, see RemovePreviewDragOverHandler.

RemoveDropHandler(DependencyObject, DragEventHandler)

Removes a Drop event handler from a specified dependency object.

Declaration
public static void RemoveDropHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The Drop event occurs when an object is dropped within an element's bounds. This method removes a handler for the bubbling version of the Drop event. To remove a handler for the bubbling version of this event, see RemovePreviewDropHandler.

RemoveGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler)

Removes a GiveFeedback event handler from a specified dependency object.

Declaration
public static void RemoveGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

GiveFeedbackEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The GiveFeedback event occurs during a drag operation. This method removes a handler for the bubbling version of the GiveFeedback event. To remove a handler for the tunneling version of this event, see RemovePreviewGiveFeedbackHandler.

RemovePreviewDragEnterHandler(DependencyObject, DragEventHandler)

Removes a PreviewDragEnter event handler from a specified dependency object.

Declaration
public static void RemovePreviewDragEnterHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The PreviewDragEnter event occurs when an object is dragged into the element's bounds. This method removes a handler for the tunneling version of the PreviewDragEnter event. To remove a handler for the bubbling version of this event, see RemoveDragEnterHandler.

RemovePreviewDragLeaveHandler(DependencyObject, DragEventHandler)

Removes a PreviewDragLeave event handler from a specified dependency object.

Declaration
public static void RemovePreviewDragLeaveHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The PreviewDragLeave event occurs when an object is dragged out of the element's bounds. This method removes a handler for the tunneling version of the PreviewDragLeave event. To remove a handler for the bubbling version of this event, see RemoveDragLeaveHandler.

RemovePreviewDragOverHandler(DependencyObject, DragEventHandler)

Removes a PreviewDragOver event handler from a specified dependency object.

Declaration
public static void RemovePreviewDragOverHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The PreviewDragOver event occurs when an object is dragged over the element's bounds. This method removes a handler for the tunneling version of the PreviewDragOver event. To remove a handler for the bubbling version of this event, see RemoveDragOverHandler.

RemovePreviewDropHandler(DependencyObject, DragEventHandler)

Removes a PreviewDrop event handler from a specified dependency object.

Declaration
public static void RemovePreviewDropHandler(DependencyObject element, DragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

DragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The PreviewDrop event occurs when an object is dropped within an element's bounds. This method removes a handler for the tunneling version of the PreviewDrop event. To remove a handler for the bubbling version of this event, see RemoveDropHandler.

RemovePreviewGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler)

Removes a PreviewGiveFeedback event handler from a specified dependency object.

Declaration
public static void RemovePreviewGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

GiveFeedbackEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The PreviewGiveFeedback event occurs during a drag operation. This method removes a handler for the tunneling version of the PreviewGiveFeedback event. To remove a handler for the bubbling version of this event, see RemoveGiveFeedbackHandler.

RemovePreviewQueryContinueDragHandler(DependencyObject, QueryContinueDragEventHandler)

Removes a PreviewQueryContinueDrag event handler from a specified dependency object.

Declaration
public static void RemovePreviewQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

QueryContinueDragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The PreviewQueryContinueDrag event occurs during a drag-and-drop operation, and enables the drag source to determine whether the drag-and-drop operation should be canceled. This method removes a handler for the tunneling version of the PreviewQueryContinueDrag event. To remove a handler for the bubbling version of this event, see RemoveQueryContinueDragHandler.

RemoveQueryContinueDragHandler(DependencyObject, QueryContinueDragEventHandler)

Removes a QueryContinueDrag event handler from a specified dependency object.

Declaration
public static void RemoveQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler)
Parameters
System.Windows.DependencyObject element

The dependency object (a UIElement or ContentElement) from which to remove the event handler.

QueryContinueDragEventHandler handler

A delegate that references the handler method to be removed.

Remarks

The QueryContinueDrag event occurs during a drag-and-drop operation, and enables the drag source to determine whether the drag-and-drop operation should be canceled. This method removes a handler for the bubbling version of the QueryContinueDrag event. To remove a handler for the tunneling version of this event, see RemovePreviewQueryContinueDragHandler.

SetAllowCapturedDrag(DependencyObject, Boolean)

Sets a value indicating whether this element can raise DragInitialize event and be used as the source of a drag-and-drop operation. When set the dragged element will steal mouse capture (WPF only).

Declaration
public static void SetAllowCapturedDrag(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

The object on which to set the value.

System.Boolean value

Boolean value specifying if this element can automatically raise DragInitialize event and be used as the source of a drag-and-drop operation and steal mouse capture.

SetAllowDrag(DependencyObject, Boolean)

Sets a value indicating whether this element can raise DragInitialize event and be used as the source of a drag-and-drop operation.

Declaration
public static void SetAllowDrag(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

The object on which to set the value.

System.Boolean value

Boolean value specifying if this element can automatically raise DragInitialize event and be used as the source of a drag-and-drop operation.

SetTouchDragTrigger(DependencyObject, TouchDragTrigger)

Sets a value indicating whether this element can raise DragInitialize event and be used as the source of a drag-and-drop operation.

Declaration
[Obsolete("Obsoleted with 2017 R1. Use Telerik.Windows.Input.Touch.TouchManager's DragStartTrigger instead.", false)]
public static void SetTouchDragTrigger(DependencyObject obj, TouchDragTrigger value)
Parameters
System.Windows.DependencyObject obj

The object on which to set the value.

TouchDragTrigger value

Boolean value specifying if this element can automatically raise DragInitialize event and be used as the source of a drag-and-drop operation.

Was this article helpful?

Tell us how we can improve this article

Skip
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.