Class TreeViewItemDroppingEventArgs
Represents the class that provides the data for the ItemDropping event.
Inheritance
Namespace: Syncfusion.UI.Xaml.TreeView
Assembly: Syncfusion.TreeView.WinUI.dll
Syntax
public class TreeViewItemDroppingEventArgs : EventArgs
Constructors
TreeViewItemDroppingEventArgs()
Initializes a new instance of the TreeViewItemDroppingEventArgs class.
Declaration
public TreeViewItemDroppingEventArgs()
Properties
Data
Gets the data object that contains the data associated while dragging the items.
Declaration
public DataPackageView Data { get; }
Property Value
Type |
---|
Windows.ApplicationModel.DataTransfer.DataPackageView |
Remarks
This data has the two values named Source and Nodes. Source is the object where the dragged data is from. Nodes is the ObservableCollection TreeViewNode which are dragged.
DraggingNodes
Gets the collection of TreeViewNode which are dragged.
Declaration
public ObservableCollection<TreeViewNode> DraggingNodes { get; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<TreeViewNode> |
DragSource
Gets the reference to the dependency object that is the source of the transferred data.
Declaration
public object DragSource { get; }
Property Value
Type |
---|
System.Object |
DropPosition
Gets or sets the position where dragged nodes are going to be dropped. If you want to avoid the dropping on TreeView, you can just set this property as None.
Declaration
public DropPosition DropPosition { get; set; }
Property Value
Type |
---|
DropPosition |
Handled
Gets or sets a value indicating whether the event is handled. If this event is handled, dragged nodes will not be dropped to SfTreeView. You have to manually drop the dragged nodes.
Declaration
public bool Handled { get; set; }
Property Value
Type |
---|
System.Boolean |
TargetNode
Gets the node where the dragged items are going to be dropped.
Declaration
public TreeViewNode TargetNode { get; }
Property Value
Type |
---|
TreeViewNode |