WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewItemDroppingEventArgs - WPF API Reference | Syncfusion ItemDropping event. ">

    Show / Hide Table of Contents

    Class TreeViewItemDroppingEventArgs

    Represents the class that provides the data for the ItemDropping event.

    Inheritance
    System.Object
    System.EventArgs
    TreeViewItemDroppingEventArgs
    Inherited Members
    System.EventArgs.Empty
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.TreeView
    Assembly: Syncfusion.SfTreeView.WPF.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 IDataObject Data { get; }
    Property Value
    Type Description
    System.Windows.IDataObject
    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 Description
    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 Description
    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 .

    Declaration
    public DropPosition DropPosition { get; set; }
    Property Value
    Type Description
    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 Description
    System.Boolean

    TargetNode

    Gets the node where the dragged items are going to be dropped.

    Declaration
    public TreeViewNode TargetNode { get; }
    Property Value
    Type Description
    TreeViewNode
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved