Class RadDragDropService
Represents a service that manages drag and drop actions.
Inherited Members
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.
|
messageFilterAdded
Declaration
protected bool messageFilterAdded
Field Value
System.
|
xOutlineFormOffset
Declaration
protected int xOutlineFormOffset
Field Value
System.
|
yOutlineFormOffset
Declaration
protected int yOutlineFormOffset
Field Value
System.
|
Properties
CanCommit
Determines whether a drop operation will be committed (a valid drop target is found).
Declaration
protected bool CanCommit { get; }
Property Value
System.
|
DropLocation
Gets the current drop location in the context of the current target.
Declaration
public Point DropLocation { get; }
Property Value
System.
|
DropTarget
Gets current drop target, where the mouse cursor points.
Declaration
public ISupportDrop DropTarget { get; }
Property Value
HintWindow
Gets the Hint window.
Declaration
protected RadLayeredWindow HintWindow { get; }
Property Value
Rad The hint window. |
Initialized
Declaration
protected bool Initialized { get; }
Property Value
System.
|
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.
|
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.
|
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.
|
Methods
BeginDrag(Point, ISupportDrag)
Begins a drag pass. Allows for service automation.
Declaration
public void BeginDrag(Point mouseBeginPoint, ISupportDrag draggedObject)
Parameters
System. The position of the mouse cursor in screen coordinates. |
ISupport An instance of IDraggable that is dragged. |
CanStart(Object)
Declaration
protected override bool CanStart(object context)
Parameters
System.
|
Returns
System.
|
Overrides
Commit()
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
DoMouseMove(Point)
Mocks a mouse move to a specific point. Allows for service automation.
Declaration
public void DoMouseMove(Point mousePos)
Parameters
System.
|
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. The end position of the mouse cursor in screen coordinates. |
Rad An instance of Rad |
GetDropTarget(Point, out Point)
Declaration
protected virtual ISupportDrop GetDropTarget(Point mousePosition, out Point resultDropLocation)
Parameters
System.
|
System.
|
Returns
HandleEscKeyDown()
Declaration
protected virtual void HandleEscKeyDown()
HandleLeftButtonUp()
Declaration
protected virtual void HandleLeftButtonUp()
HandleMouseMove(Point)
Declaration
protected virtual void HandleMouseMove(Point mousePos)
Parameters
System.
|
IsDropTargetValid(ISupportDrop)
Declaration
protected virtual bool IsDropTargetValid(ISupportDrop dropTarget)
Parameters
ISupport
|
Returns
System.
|
OnPreviewDragDrop(RadDropEventArgs)
Declaration
protected virtual void OnPreviewDragDrop(RadDropEventArgs e)
Parameters
OnPreviewDragHint(PreviewDragHintEventArgs)
Declaration
protected virtual void OnPreviewDragHint(PreviewDragHintEventArgs e)
Parameters
OnPreviewDragOver(RadDragOverEventArgs)
Declaration
protected virtual void OnPreviewDragOver(RadDragOverEventArgs e)
Parameters
OnPreviewDragStart(PreviewDragStartEventArgs)
Declaration
protected virtual void OnPreviewDragStart(PreviewDragStartEventArgs e)
Parameters
OnPreviewDropTarget(PreviewDropTargetEventArgs)
Declaration
protected virtual void OnPreviewDropTarget(PreviewDropTargetEventArgs e)
Parameters
PerformStart()
PerformStop()
PrepareContext()
Declaration
protected virtual bool PrepareContext()
Returns
System.
|
RestoreOriginalMouseCursor()
Declaration
protected virtual void RestoreOriginalMouseCursor()
SetHintWindowPosition(Point)
Declaration
protected virtual void SetHintWindowPosition(Point mousePt)
Parameters
System.
|
ShouldBeginDrag(Point, Point)
Declaration
public static bool ShouldBeginDrag(Point current, Point capture)
Parameters
System.
|
System.
|
Returns
System.
|
Events
PreviewDragDrop
Declaration
public event EventHandler<RadDropEventArgs> PreviewDragDrop
Event Type
System.
|
PreviewDragHint
Declaration
public event EventHandler<PreviewDragHintEventArgs> PreviewDragHint
Event Type
System.
|
PreviewDragOver
Declaration
public event EventHandler<RadDragOverEventArgs> PreviewDragOver
Event Type
System.
|
PreviewDragStart
Declaration
public event EventHandler<PreviewDragStartEventArgs> PreviewDragStart
Event Type
System.
|
PreviewDropTarget
Declaration
public event EventHandler<PreviewDropTargetEventArgs> PreviewDropTarget
Event Type
System.
|
Explicit Interface Implementations
IMessageListener.DesiredHook
Declaration
InstalledHook IMessageListener.DesiredHook { get; }
Returns
Implements
IMessageListener.PreviewMessage(ref Message)
Declaration
MessagePreviewResult IMessageListener.PreviewMessage(ref Message msg)
Parameters
System.
|
Returns
Implements
IMessageListener.PreviewSystemMessage(SystemMessage, Message)
Declaration
void IMessageListener.PreviewSystemMessage(SystemMessage message, Message msg)
Parameters
System
|
System.
|
Implements
IMessageListener.PreviewWndProc(Message)
Declaration
void IMessageListener.PreviewWndProc(Message msg)
Parameters
System.
|