ArcGIS Pro 3.3 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 UIElement VisualSourceItem {get;}
    Public ReadOnly Property VisualSourceItem As UIElement
    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, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also