ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Framework.DragDrop Namespace / DragInfo Class / VisualSourceItem Property

In This Topic
    VisualSourceItem Property
    In This Topic
    Gets the item in an ItemsControl that started the drag.
    Syntax
    Public ReadOnly Property VisualSourceItem As UIElement
    public UIElement VisualSourceItem {get;}
    Remarks
    If the control that initiated the drag is an ItemsControl, this property will hold the item container of the clicked item. For example, if VisualSource is a ListBox this will hold a ListBoxItem.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also