Class GridViewDragDropHelper
Helper class that binds the DragDropManager events with a DragDropBehavior.
Inheritance
Inherited Members
Namespace: Telerik.Windows.DragDrop.Behaviors
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class GridViewDragDropHelper : DragDropHelper<GridViewDragDropBehavior, GridViewDragDropState>
Constructors
GridViewDragDropHelper()
Declaration
public GridViewDragDropHelper()
Methods
FindDraggedItem(FrameworkElement)
Finds the GridViewRow 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)
Declaration
protected override FrameworkElement FindDragSource(FrameworkElement element)
Parameters
System.Windows.FrameworkElement
element
|
Returns
System.Windows.FrameworkElement
|
Overrides
Remarks
Finds the RadGridView that contains the provided element.
FindDropItemsControl(FrameworkElement, Object)
Declaration
protected override FrameworkElement FindDropItemsControl(FrameworkElement element, object data)
Parameters
System.Windows.FrameworkElement
element
|
System.Object
data
|
Returns
System.Windows.FrameworkElement
|
Overrides
Remarks
Finds the RadGridView that should accept the dragged items.
FindDropTarget(FrameworkElement)
Declaration
protected override FrameworkElement FindDropTarget(FrameworkElement element)
Parameters
System.Windows.FrameworkElement
element
|
Returns
System.Windows.FrameworkElement
|
Overrides
Remarks
Finds a RadGridView from the target control that contains the provided element.
GetContainerFromItem(FrameworkElement, Object)
Declaration
protected override DependencyObject GetContainerFromItem(FrameworkElement control, object item)
Parameters
System.Windows.FrameworkElement
control
|
System.Object
item
|
Returns
System.Windows.DependencyObject
|
Overrides
GetDraggedItems(FrameworkElement)
Declaration
protected override IEnumerable<object> GetDraggedItems(FrameworkElement draggedItem)
Parameters
System.Windows.FrameworkElement
draggedItem
|
Returns
System.Collections.Generic.IEnumerable<System.Object>
|
Overrides
Remarks
Returns the SelectedItems list of the RadGridView that contains the dragged row and adds the dragged row to the list if it is not already present there.
GetItemsSource(FrameworkElement)
Declaration
protected override IList GetItemsSource(FrameworkElement element)
Parameters
System.Windows.FrameworkElement
element
|
Returns
System.Collections.IList
|
Overrides
Remarks
Returns a list containing the items of the specified RadGridView.