Provides helper methods for drag-and-drop operations in ListBox controls.
Definition
Namespace:Telerik.Windows.DragDrop.Behaviors
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class ListBoxDragDropHelper : DragDropHelper<ListBoxDragDropBehavior, DragDropState>
Inheritance: objectDragDropHelper<ListBoxDragDropBehavior, DragDropState>ListBoxDragDropHelper
Inherited Members
Constructors
public ListBoxDragDropHelper()
Methods
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: