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

The EventArgs for the DragInProgress event of the RadTreeView.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class DragOverTreeEventArgs : RadRoutedEventArgs

Inheritance: objectRadRoutedEventArgsDragOverTreeEventArgs

Constructors

Initializes a new instance of the DragOverTreeEventArgs class.

C#
public DragOverTreeEventArgs(bool isCanceled, bool isDropPossible, object payload, RadTreeViewItem targetDropItem, RadTreeView targetDropTree, DragEventArgs externalDragEventArgs, RoutedEvent routedEvent, object source)
Parameters:isCanceledbool

Is the event canceled.

isDropPossiblebool

Is the drop possible.

payloadobject

The item(s) that are being dragged.

targetDropItemRadTreeViewItem

The target item on which items are dropped.

targetDropTreeRadTreeView

The target tree view on which items are dropped.

externalDragEventArgsDragEventArgs

Drag event args used by the framework.

routedEventRoutedEvent

The associated routed event.

sourceobject

The source of the event.

Properties

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.

C#
public DropPosition DropPosition { get; }

Gets the drag event args used by the framework.

C#
public DragEventArgs ExternalDragEventArgs { get; }

Gets or sets whether the event has been canceled.

C#
public bool IsCanceled { get; set; }

Gets whether the drop is possible.

C#
public bool IsDropPossible { get; }

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.

C#
public IEnumerable NewPayload { get; set; }
Property Value:

The dragged item(s).

Gets the dragged item(s).

C#
public object Payload { get; }
Property Value:

The dragged item(s).

Gets the item on which the items are dropped.

C#
public RadTreeViewItem TargetDropItem { get; }

Gets the tree view on which the items are dropped.

C#
public RadTreeView TargetDropTree { get; }