ClassRadDragAndDropManager
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
Identifies the AllowDrag attached property.
Declaration
public static readonly DependencyProperty AllowDragProperty
Field Value
DependencyProperty
AllowDropProperty
Identifies the AllowDrop attached property.
Declaration
public static readonly DependencyProperty AllowDropProperty
Field Value
DependencyProperty
AutoDragProperty
Identifies the AutoDrag attached property.
Declaration
public static readonly DependencyProperty AutoDragProperty
Field Value
DependencyProperty
DragArrowAdjustingEvent
Identifies the DragArrowAdjusting event.
Declaration
public static readonly RoutedEvent DragArrowAdjustingEvent
Field Value
RoutedEvent
DragInfoEvent
Identifies the DragInfo event.
Declaration
public static readonly RoutedEvent DragInfoEvent
Field Value
RoutedEvent
DragQueryEvent
Identifies the DragQuery event.
Declaration
public static readonly RoutedEvent DragQueryEvent
Field Value
RoutedEvent
DropInfoEvent
Identifies the DropInfo event.
Declaration
public static readonly RoutedEvent DropInfoEvent
Field Value
RoutedEvent
DropQueryEvent
Identifies the DragQuery event.
Declaration
public static readonly RoutedEvent DropQueryEvent
Field Value
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
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
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
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
EnableNativeDrag
Enables RadDragAndDropManager to use the native drag/drop system capabilities.
ExecutionMode
Gets or sets the execution mode of the drag operations.
Declaration
public static DragExecutionMode ExecutionMode { get; set; }
Property Value
The execution mode.
IsDragging
Gets a value indicating whether there is a dragging in process.
Options
Gets the status of the current drag and drop process.
Declaration
public static DragDropOptions Options { get; }
Property Value
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
target
DependencyObject
The element to add handler to.
handler
EventHandler<DragArrowAdjustingEventArgs>
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
target
DependencyObject
The element to add handler to.
handler
EventHandler<DragDropEventArgs>
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
target
DependencyObject
The element to add handler to.
handler
EventHandler<DragDropQueryEventArgs>
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
target
DependencyObject
The element to add handler to.
handler
EventHandler<DragDropEventArgs>
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
target
DependencyObject
The element to add handler to.
handler
EventHandler<DragDropQueryEventArgs>
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
ContentControl
A new drag arrow cue element.
GenerateVisualCue()
Creates a drag/drop visual cue based on the default settings of the Drag/Drop manager.
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
source
FrameworkElement
If provided, the properties of the visual cue will be set to match this element.
Returns
A new instance of the DragVisualCue class.
GetAllowDrag(DependencyObject)
Gets the AllowDrag attached property.
Declaration
public static bool GetAllowDrag(DependencyObject obj)
Parameters
obj
DependencyObject
The object to get the property for.
Returns
GetAllowDrop(DependencyObject)
Gets the AllowDrop attached property.
Declaration
public static bool GetAllowDrop(DependencyObject obj)
Parameters
obj
DependencyObject
The object to get the property for.
Returns
GetAutoDrag(DependencyObject)
Gets the AutoDrag attached property.
Declaration
public static bool GetAutoDrag(DependencyObject obj)
Parameters
obj
DependencyObject
The object to set the property to.
Returns
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
target
DependencyObject
The element to remove the handler from.
handler
EventHandler<DragArrowAdjustingEventArgs>
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
target
DependencyObject
The element to remove the handler from.
handler
EventHandler<DragDropEventArgs>
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
target
DependencyObject
The element to remove the handler from.
handler
EventHandler<DragDropQueryEventArgs>
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
target
DependencyObject
The element to remove the handler from.
handler
EventHandler<DragDropEventArgs>
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
target
DependencyObject
The element to remove the handler from.
handler
EventHandler<DragDropQueryEventArgs>
The handler for the event.
SetAllowDrag(DependencyObject, bool)
Sets the AllowDrag attached property.
Declaration
public static void SetAllowDrag(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
The object to set the property to.
value
The value of the property.
SetAllowDrop(DependencyObject, bool)
Sets the AllowDrop attached property.
Declaration
public static void SetAllowDrop(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
The object to set the property to.
value
The value of the property.
SetAutoDrag(DependencyObject, bool)
Sets the AutoDrag attached property.
Declaration
public static void SetAutoDrag(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
The object to set the property to.
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
dragSource
FrameworkElement
The element that is a source of the DragDrop.
payload
The payload of the DragDrop. Can be null.
dragCue
The drag cue of the DragDrop. Can be null.