TreeViewDragItemsStartingEventArgs.Data Property

Definition

Gets the data payload associated with an items drag action.

This documentation applies to WinUI 2 for UWP (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; }
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