Class
DragOverTreeEventArgs

The EventArgs for the DragInProgress event of the RadTreeView.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class DragOverTreeEventArgs : RadRoutedEventArgs

Inheritance: objectRadRoutedEventArgsDragOverTreeEventArgs

Constructors

DragOverTreeEventArgs(bool, bool, object, RadTreeViewItem, RadTreeView, DragEventArgs, RoutedEvent, object)

Initializes a new instance of the DragOverTreeEventArgs class.

Declaration

cs-api-definition
public DragOverTreeEventArgs(bool isCanceled, bool isDropPossible, object payload, RadTreeViewItem targetDropItem, RadTreeView targetDropTree, DragEventArgs externalDragEventArgs, RoutedEvent routedEvent, object source)

Parameters

isCanceled

bool

Is the event canceled.

isDropPossible

bool

Is the drop possible.

payload

object

The item(s) that are being dragged.

targetDropItem

RadTreeViewItem

The target item on which items are dropped.

targetDropTree

RadTreeView

The target tree view on which items are dropped.

externalDragEventArgs

DragEventArgs

Drag event args used by the framework.

routedEvent

RoutedEvent

The associated routed event.

source

object

The source of the event.

Properties

DropPosition

Gets the position where the item(s) are dropped relative to the TargetDropItem. If you need to set the DropPosition, set it to the TargetDropItem.

Declaration

cs-api-definition
public DropPosition DropPosition { get; }

Property Value

DropPosition

ExternalDragEventArgs

Gets the drag event args used by the framework.

Declaration

cs-api-definition
public DragEventArgs ExternalDragEventArgs { get; }

Property Value

DragEventArgs

IsCanceled

Gets or sets whether the event has been canceled.

Declaration

cs-api-definition
public bool IsCanceled { get; set; }

Property Value

bool

IsDropPossible

Gets whether the drop is possible.

Declaration

cs-api-definition
public bool IsDropPossible { get; }

Property Value

bool

NewPayload

Gets or sets the Payload property. Call this method when dragging from external program in WPF to set specific payload recognizable by the tree view.

Declaration

cs-api-definition
public IEnumerable NewPayload { get; set; }

Property Value

IEnumerable

The dragged item(s).

Payload

Gets the dragged item(s).

Declaration

cs-api-definition
public object Payload { get; }

Property Value

object

The dragged item(s).

TargetDropItem

Gets the item on which the items are dropped.

Declaration

cs-api-definition
public RadTreeViewItem TargetDropItem { get; }

Property Value

RadTreeViewItem

TargetDropTree

Gets the tree view on which the items are dropped.

Declaration

cs-api-definition
public RadTreeView TargetDropTree { get; }

Property Value

RadTreeView