ClassListBoxDragDropHelper
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
ListBoxDragDropHelper()
Declaration
public ListBoxDragDropHelper()
Methods
FindDragSource(FrameworkElement)
Finds the ListBox that contains the provided element.
Declaration
protected override FrameworkElement FindDragSource(FrameworkElement element)
Parameters
element
FrameworkElement
The element that raised the DragInitialize event.
Returns
FrameworkElement
Overrides
FindDraggedItem(FrameworkElement)
Finds the ListBoxItem that contains the provided element.
Declaration
protected override FrameworkElement FindDraggedItem(FrameworkElement element)
Parameters
element
FrameworkElement
The element that raised the DragInitialize event.
Returns
FrameworkElement
Overrides
FindDropItemsControl(FrameworkElement, object)
Finds the ListBox that should accept the dragged items.
Declaration
protected override FrameworkElement FindDropItemsControl(FrameworkElement element, object data)
Parameters
element
FrameworkElement
The element that raised the Drop event.
data
The DataObject for the current drag operation.
Returns
FrameworkElement
Overrides
FindDropTarget(FrameworkElement)
Finds a ListBoxItem from the target control that contains the provided element.
Declaration
protected override FrameworkElement FindDropTarget(FrameworkElement element)
Parameters
element
FrameworkElement
The element that raised the Drop event.
Returns
FrameworkElement
Overrides
GetDraggedItems(FrameworkElement)
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.
Declaration
protected override IEnumerable<object> GetDraggedItems(FrameworkElement draggedItem)
Parameters
draggedItem
FrameworkElement
The source control of the drag operation.
Returns
The items that should be dragged.
Overrides