DragItemsStartingEventArgs DragItemsStartingEventArgs DragItemsStartingEventArgs Class

Definition

Provides event data for the DragItemsStarting event.

public sealed class DragItemsStartingEventArgs : IDragItemsStartingEventArgspublic sealed class DragItemsStartingEventArgs : IDragItemsStartingEventArgsPublic NotInheritable Class DragItemsStartingEventArgs Implements IDragItemsStartingEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

DragItemsStartingEventArgs() DragItemsStartingEventArgs() DragItemsStartingEventArgs()

Initializes a new instance of the DragItemsStartingEventArgs class.

public DragItemsStartingEventArgs()public DragItemsStartingEventArgs()Public Sub New()
Attributes

Properties

Cancel Cancel Cancel

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

public bool Cancel { get; set; }public bool Cancel { get; set; }Public ReadWrite Property Cancel As bool
Value
bool bool bool

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

Attributes

Remarks

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

Data Data Data

Gets the data payload associated with an items drag action.

public DataPackage Data { get; }public DataPackage Data { get; }Public ReadOnly Property Data As DataPackage
Value
DataPackage DataPackage DataPackage

The data payload.

Attributes

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.

Items Items Items

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

public IVector<object> Items { get; }public IVector<object> Items { get; }Public ReadOnly Property Items As IVector<object>
Value

A loosely typed collection of objects.

Attributes

See Also