DragItemsStartingEventArgs DragItemsStartingEventArgs DragItemsStartingEventArgs Class

Definition

Provides event data for the DragItemsStarting event.

public : sealed class DragItemsStartingEventArgs : IDragItemsStartingEventArgs
public sealed class DragItemsStartingEventArgs : IDragItemsStartingEventArgs
Public 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()

Properties

Cancel Cancel Cancel

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

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

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

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.

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<Platform::Object> Items { get; }
public IList<object> Items { get; }
Public ReadOnly Property Items As IList<object>
Value
IVector<Platform::Object> IList<object> IList<object>

A loosely typed collection of objects.

See Also