Class ListBoxDragDropHelper
Inheritance
Inherited Members
Namespace: Telerik.Windows.DragDrop.Behaviors
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ListBoxDragDropHelper : DragDropHelper<ListBoxDragDropBehavior, DragDropState>
Constructors
ListBoxDragDropHelper()
Declaration
public ListBoxDragDropHelper()
Methods
FindDraggedItem(FrameworkElement)
Finds the ListBoxItem that contains the provided element.
Declaration
protected override FrameworkElement FindDraggedItem(FrameworkElement element)
Parameters
System.Windows.FrameworkElement
element
The element that raised the DragInitialize event. |
Returns
System.Windows.FrameworkElement
|
Overrides
FindDragSource(FrameworkElement)
Finds the ListBox that contains the provided element.
Declaration
protected override FrameworkElement FindDragSource(FrameworkElement element)
Parameters
System.Windows.FrameworkElement
element
The element that raised the DragInitialize event. |
Returns
System.Windows.FrameworkElement
|
Overrides
FindDropItemsControl(FrameworkElement, Object)
Finds the ListBox that should accept the dragged items.
Declaration
protected override FrameworkElement FindDropItemsControl(FrameworkElement element, object data)
Parameters
System.Windows.FrameworkElement
element
The element that raised the Drop event. |
System.Object
data
The DataObject for the current drag operation. |
Returns
System.Windows.FrameworkElement
|
Overrides
FindDropTarget(FrameworkElement)
Finds a ListBoxItem from the target control that contains the provided element.
Declaration
protected override FrameworkElement FindDropTarget(FrameworkElement element)
Parameters
System.Windows.FrameworkElement
element
The element that raised the Drop event. |
Returns
System.Windows.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
System.Windows.FrameworkElement
draggedItem
The source control of the drag operation. |
Returns
System.Collections.Generic.IEnumerable<System.Object>
The items that should be dragged. |