New to Telerik UI for WPFStart a free 30-day trial

Defines a drag-and-drop behavior that facilitates the interaction between helper, behavior, and state types.

Definition

Namespace:Telerik.Windows.DragDrop.Behaviors

Assembly:Telerik.Windows.Controls.dll

Type Parameters:

THelper

The type of the helper associated with the drag-and-drop operation.

TBehavior

The type of the behavior that manages drag-and-drop events.

TState

The type representing the state of the drag-and-drop operation.

Syntax:

C#
public abstract class DragDrop<THelper, TBehavior, TState> where THelper : DragDropHelper<TBehavior, TState>, new() where TBehavior : DragDropBehavior<TState> where TState : DragDropState, new()

Inheritance: objectDragDrop<THelper, TBehavior, TState>

Derived Classes: RadListBox.RadListBoxDragDropTaskBoardDragDropGridViewDragDropListBoxDragDrop

Constructors

C#
protected DragDrop()

Fields

BehaviorProperty

DependencyProperty

Identifies the Behavior attached dependency property.

C#
public static readonly DependencyProperty BehaviorProperty

DataConverterProperty

DependencyProperty

Identifies the DataConverter attached dependency property.

C#
public static readonly DependencyProperty DataConverterProperty

DragVisualProviderProperty

DependencyProperty

Identifies the DragVisualProvider dependency property.

C#
public static readonly DependencyProperty DragVisualProviderProperty

HelperProperty

DependencyProperty

Identifies the Helper dependency property.

C#
protected static readonly DependencyProperty HelperProperty

Methods

Gets the value of the Behavior attached property.

C#
public static TBehavior GetBehavior(DependencyObject obj)
Parameters:objDependencyObjectReturns:

TBehavior

Gets the value of the DataConverter attached property.

C#
public static DataConverter GetDataConverter(DependencyObject obj)
Parameters:objDependencyObjectReturns:

DataConverter

Gets the value of the DataConverter attached property.

C#
public static IDragVisualProvider GetDragVisualProvider(DependencyObject obj)
Parameters:objDependencyObjectReturns:

IDragVisualProvider

Sets the value of the Behavior attached property.

C#
public static void SetBehavior(DependencyObject obj, TBehavior value)
Parameters:objDependencyObjectvalueTBehavior

Sets the value of the DataConverter attached property.

C#
public static void SetDataConverter(DependencyObject obj, DataConverter value)
Parameters:objDependencyObjectvalueDataConverter

Sets the value of the DataConverter attached property.

C#
public static void SetDragVisualProvider(DependencyObject obj, IDragVisualProvider value)
Parameters:objDependencyObjectvalueIDragVisualProvider