Delen via


TreeViewDragItemsStartingEventArgs.Data Property

Definition

Gets the data payload associated with an items drag action.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs.Data (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property DataPackage ^ Data { DataPackage ^ get(); };
DataPackage Data();
public DataPackage Data { get; }
var dataPackage = treeViewDragItemsStartingEventArgs.data;
Public ReadOnly Property Data As DataPackage

Property Value

The data payload.

Remarks

By default the data is empty. When you perform custom actions as the result of a drag-and-drop operation, you typically provide custom data that can later be inspected and used to perform the custom action.

Applies to