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