DragItemsStartingEventArgs DragItemsStartingEventArgs DragItemsStartingEventArgs DragItemsStartingEventArgs Class


Provides event data for the DragItemsStarting event.

public : sealed class DragItemsStartingEventArgs : IDragItemsStartingEventArgs
struct winrt::Windows::UI::Xaml::Controls::DragItemsStartingEventArgs : IDragItemsStartingEventArgs
public sealed class DragItemsStartingEventArgs : IDragItemsStartingEventArgs
Public NotInheritable Class DragItemsStartingEventArgs Implements IDragItemsStartingEventArgs
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


DragItemsStartingEventArgs() DragItemsStartingEventArgs() DragItemsStartingEventArgs() DragItemsStartingEventArgs()

Initializes a new instance of the DragItemsStartingEventArgs class.

public : DragItemsStartingEventArgs()
DragItemsStartingEventArgs() const;
public DragItemsStartingEventArgs()
Public Sub New()


Cancel Cancel Cancel Cancel

Gets or sets a value that indicates whether the item drag action should be canceled.

public : Platform::Boolean Cancel { get; set; }
bool Cancel(); void Cancel(bool cancel);
public bool Cancel { get; set; }
Public ReadWrite Property Cancel As bool
bool bool

True to cancel the item drag action; otherwise, false.


Set this property to true in a handler in order to cancel an items drag action.

Data Data Data Data

Gets the data payload associated with an items drag action.

public : DataPackage Data { get; }
DataPackage Data();
public DataPackage Data { get; }
Public ReadOnly Property Data As DataPackage
DataPackage DataPackage

The data payload.


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.

See Also

Items Items Items Items

Gets the loosely typed collection of objects that are selected for the item drag action.

public : IVector<Platform::Object> Items { get; }
IVector<winrt::Windows::Foundation::IInspectable> Items();
public IList<object> Items { get; }
Public ReadOnly Property Items As IList<object>
IList<object> IList<object>

A loosely typed collection of objects.

See Also