A manager class that enables drag drop operations between objects.
Definition
Namespace:Telerik.Windows.Controls.DragDrop
Assembly:Telerik.Windows.Controls.dll
Syntax:
[Obsolete("Obsoleted due to the replacement with DragDropManager", false)]
public static class RadDragAndDropManager
Inheritance: objectRadDragAndDropManager
Fields
AllowDragProperty
DependencyProperty
Identifies the AllowDrag attached property.
public static readonly DependencyProperty AllowDragProperty
AllowDropProperty
DependencyProperty
Identifies the AllowDrop attached property.
public static readonly DependencyProperty AllowDropProperty
AutoDragProperty
DependencyProperty
Identifies the AutoDrag attached property.
public static readonly DependencyProperty AutoDragProperty
DragArrowAdjustingEvent
RoutedEvent
Identifies the DragArrowAdjusting event.
public static readonly RoutedEvent DragArrowAdjustingEvent
DragInfoEvent
RoutedEvent
Identifies the DragInfo event.
public static readonly RoutedEvent DragInfoEvent
DragQueryEvent
RoutedEvent
Identifies the DragQuery event.
public static readonly RoutedEvent DragQueryEvent
DropInfoEvent
RoutedEvent
Identifies the DropInfo event.
public static readonly RoutedEvent DropInfoEvent
DropQueryEvent
RoutedEvent
Identifies the DragQuery event.
public static readonly RoutedEvent DropQueryEvent
Properties
Gets or sets the minimum length of the arrow that needs to be reached before it is shown.
public static double ArrowVisibilityMinimumThreshold { get; set; }
Gets or sets a value indicating whether the ScrollViews should automatically scroll to bring content into view.
public static bool AutoBringIntoView { get; set; }
DragCueOffset
Point
Get or sets the relative horizontal and vertical offset of the drag cue. These values could be negative.
public static Point DragCueOffset { get; set; }
Gets or sets the distance in pixels that the user needs to drag an object before a real drag operation starts. This prevents incidental drag on mouse press.
public static double DragStartThreshold { get; set; }
Enables RadDragAndDropManager to use the native drag/drop system capabilities.
public static bool EnableNativeDrag { get; set; }
Gets or sets the execution mode of the drag operations.
public static DragExecutionMode ExecutionMode { get; set; }
The execution mode.
Gets a value indicating whether there is a dragging in process.
public static bool IsDragging { get; }
Gets the status of the current drag and drop process.
public static DragDropOptions Options { get; }
Methods
Adds a handler to for the DragArrowAdjusting routed event.
public static void AddDragArrowAdjustingHandler(DependencyObject target, EventHandler<DragArrowAdjustingEventArgs> handler)
The element to add handler to.
handlerEventHandler<DragArrowAdjustingEventArgs>The handler for the event.
Adds a handler to for the DragInfo routed event.
public static void AddDragInfoHandler(DependencyObject target, EventHandler<DragDropEventArgs> handler)
The element to add handler to.
handlerEventHandler<DragDropEventArgs>The handler for the event.
Adds a handler to for the DragQuery routed event.
public static void AddDragQueryHandler(DependencyObject target, EventHandler<DragDropQueryEventArgs> handler)
The element to add handler to.
handlerEventHandler<DragDropQueryEventArgs>The handler for the event.
Adds a handler to for the DropInfo routed event.
public static void AddDropInfoHandler(DependencyObject target, EventHandler<DragDropEventArgs> handler)
The element to add handler to.
handlerEventHandler<DragDropEventArgs>The handler for the event.
Adds a handler to for the DropQuery routed event.
public static void AddDropQueryHandler(DependencyObject target, EventHandler<DragDropQueryEventArgs> handler)
The element to add handler to.
handlerEventHandler<DragDropQueryEventArgs>The handler for the event.
Cancels the current drag operation.
public static void CancelDrag()
GenerateArrowCue()
ContentControl
Generates an arrow content control that can be used in as an arrow cue in the drag/drop operation.
public static ContentControl GenerateArrowCue()
ContentControl
A new drag arrow cue element.
Creates a drag/drop visual cue based on the default settings of the Drag/Drop manager.
Creates a drag/drop visual cue based on the default settings of the Drag/Drop manager.
public static DragVisualCue GenerateVisualCue(FrameworkElement source)
If provided, the properties of the visual cue will be set to match this element.
Returns:A new instance of the DragVisualCue class.
Gets the AllowDrag attached property.
public static bool GetAllowDrag(DependencyObject obj)
The object to get the property for.
Returns:Gets the AllowDrop attached property.
public static bool GetAllowDrop(DependencyObject obj)
The object to get the property for.
Returns:Gets the AutoDrag attached property.
public static bool GetAutoDrag(DependencyObject obj)
The object to set the property to.
Returns:Initialize the RadDragAndDropManager infrastructure.
public static void Initialize()
Removes a handler for the DragArrowAdjusting routed event.
public static void RemoveDragArrowAdjustingHandler(DependencyObject target, EventHandler<DragArrowAdjustingEventArgs> handler)
The element to remove the handler from.
handlerEventHandler<DragArrowAdjustingEventArgs>The handler for the event.
Removes a handler for the DragInfo routed event.
public static void RemoveDragInfoHandler(DependencyObject target, EventHandler<DragDropEventArgs> handler)
The element to remove the handler from.
handlerEventHandler<DragDropEventArgs>The handler for the event.
Removes a handler for the DragQuery routed event.
public static void RemoveDragQueryHandler(DependencyObject target, EventHandler<DragDropQueryEventArgs> handler)
The element to remove the handler from.
handlerEventHandler<DragDropQueryEventArgs>The handler for the event.
Removes a handler for the DropInfo routed event.
public static void RemoveDropInfoHandler(DependencyObject target, EventHandler<DragDropEventArgs> handler)
The element to remove the handler from.
handlerEventHandler<DragDropEventArgs>The handler for the event.
Removes a handler for the DropQuery routed event.
public static void RemoveDropQueryHandler(DependencyObject target, EventHandler<DragDropQueryEventArgs> handler)
The element to remove the handler from.
handlerEventHandler<DragDropQueryEventArgs>The handler for the event.
Sets the AllowDrag attached property.
public static void SetAllowDrag(DependencyObject obj, bool value)
The object to set the property to.
valueboolThe value of the property.
Sets the AllowDrop attached property.
public static void SetAllowDrop(DependencyObject obj, bool value)
The object to set the property to.
valueboolThe value of the property.
Sets the AutoDrag attached property.
public static void SetAutoDrag(DependencyObject obj, bool value)
The object to set the property to.
valueboolThe value of the property.
Starts a drag operation. The DragSource parameter cannot be null.