Represents drag and drop helper for the RadListBox control.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class RadListBoxDragDropHelper : DragDropHelper<ListBoxDragDropBehavior, DragDropState>
Inheritance: objectDragDropHelper<ListBoxDragDropBehavior, DragDropState>RadListBoxDragDropHelper
Inherited Members
Constructors
Initializes a new instance of the RadListBoxDragDropHelper class.
public RadListBoxDragDropHelper()
Methods
Creates and initializes a DragDropState from the provided DragEventArgs.
When overridden in a derived class allows calling custom code on the DragDropCompleted event.
Hides the drop visual on mouse leave.
protected override void DragLeave(FrameworkElement dropTarget, FrameworkElement dropItemsControl, object data, Type itemType)
The object that is being dropped.
dropItemsControlFrameworkElementThe destination ItemsControl.
dataobjectThe drag and drop data.
itemTypeTypeThe data type of the dragged item.
Overrides:
DragOver(FrameworkElement, FrameworkElement, object, Type)
DragDropEffects
When overridden in a derived class allows calling custom code on the DragOver event.
FindDraggedItem(FrameworkElement)
FrameworkElement
Finds the ListBoxItem that contains the provided element.
protected override FrameworkElement FindDraggedItem(FrameworkElement element)
The element that raised the DragInitialize event.
Returns:FrameworkElement
Overrides:
FindDragSource(FrameworkElement)
FrameworkElement
Finds the ListBox that contains the provided element.
protected override FrameworkElement FindDragSource(FrameworkElement element)
The element that raised the DragInitialize event.
Returns:FrameworkElement
Overrides:
FindDropItemsControl(FrameworkElement, object)
FrameworkElement
Finds the ListBox that should accept the dragged items.
protected override FrameworkElement FindDropItemsControl(FrameworkElement element, object data)
The element that raised the Drop event.
dataobjectThe DataObject for the current drag operation.
Returns:FrameworkElement
Overrides:
FindDropTarget(FrameworkElement)
FrameworkElement
Finds a ListBoxItem from the target control that contains the provided element.
protected override FrameworkElement FindDropTarget(FrameworkElement element)
The element that raised the Drop event.
Returns:FrameworkElement
Overrides:
Returns the SelectedItems list of the ListBox that contains the dragged item and adds the dragged item to the list if it is not already present there.
protected override IEnumerable<object> GetDraggedItems(FrameworkElement draggedItem)
The source control of the drag operation.
Returns:The items that should be dragged.
Overrides:
Initialize the DragVisualPlaceholder used in the DragAndDrop operations.
public void SetDropVisualPlaceholder(ContentPresenter dropVisualPlaceholder)
Initialize the DropVisualProvider used in the DragAndDrop operations.
public void SetDropVisualProvider(IDropVisualProvider dropVisualProvider)