ClassListViewDragDropService
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ListViewDragDropService : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener
Inheritance: objectDisposableObjectRadObjectRadServiceRadDragDropServiceListViewDragDropService
Implements:
Inherited Members
Constructors
ListViewDragDropService(RadListViewElement)
Declaration
public ListViewDragDropService(RadListViewElement owner)
Parameters
owner
Properties
DraggedItem
Declaration
public ListViewDataItem DraggedItem { get; }
Property Value
DraggedItems
Declaration
public List<ListViewDataItem> DraggedItems { get; }
Property Value
List<ListViewDataItem>
Owner
Declaration
public RadListViewElement Owner { get; }
Property Value
Methods
CanStart(object)
Determines whether the service may be started. Validation is as follows:
- Check whether Enabled is true.
- Check the context through IsContextValid method. An exception is thrown if context is invalid.
- Checks the current state - it should be Initial or Stopped.
DisposeDragHint()
Declaration
protected virtual void DisposeDragHint()
GetDragHintSize(ISupportDrop)
Declaration
protected virtual Size GetDragHintSize(ISupportDrop dropTarget)
Parameters
dropTarget
Returns
HandleDragDrop(RadDropEventArgs)
Declaration
protected virtual void HandleDragDrop(RadDropEventArgs e)
Parameters
e
HandleDropBetweenListViews(RadDropEventArgs)
Declaration
protected virtual void HandleDropBetweenListViews(RadDropEventArgs e)
Parameters
e
HandleMouseMove(Point)
Declaration
protected override void HandleMouseMove(Point mousePos)
Parameters
mousePos
Overrides
IsDropTargetValid(ISupportDrop)
Declaration
protected override bool IsDropTargetValid(ISupportDrop dropTarget)
Parameters
dropTarget
Returns
Overrides
OnPreviewDragDrop(RadDropEventArgs)
Declaration
protected override void OnPreviewDragDrop(RadDropEventArgs e)
Parameters
e
Overrides
OnPreviewDragOver(RadDragOverEventArgs)
Declaration
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
Parameters
e
Overrides
PerformStart()
Performs the core Start logic.
Declaration
protected override void PerformStart()
Overrides
PerformStop()
Stops the service. Performs the core logic.
Declaration
protected override void PerformStop()
Overrides
PrepareDragHint()
Declaration
protected virtual void PrepareDragHint()
UpdateDragHintLocation(Point)
Declaration
protected virtual void UpdateDragHintLocation(Point mousePosition)
Parameters
mousePosition