DragStartingEventArgs DragStartingEventArgs DragStartingEventArgs DragStartingEventArgs Class

Definition

Provides event data for the DragStarting event.

public : sealed class DragStartingEventArgs : RoutedEventArgs, IDragStartingEventArgs, IDragStartingEventArgs2public sealed class DragStartingEventArgs : RoutedEventArgs, IDragStartingEventArgs, IDragStartingEventArgs2Public NotInheritable Class DragStartingEventArgs Inherits RoutedEventArgs Implements IDragStartingEventArgs, IDragStartingEventArgs2// This API is not available in Javascript.
Inheritance
DragStartingEventArgsDragStartingEventArgsDragStartingEventArgsDragStartingEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Properties

AllowedOperations AllowedOperations AllowedOperations AllowedOperations

Gets or sets the allowed data package operations (none, move, copy, and/or link) for the drag and drop operation.

public : DataPackageOperation AllowedOperations { get; set; }public DataPackageOperation AllowedOperations { get; set; }Public ReadWrite Property AllowedOperations As DataPackageOperation// This API is not available in Javascript.
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

For more info about the allowed data operations, see DataPackageOperation.

Cancel Cancel Cancel Cancel

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

public : PlatForm::Boolean Cancel { get; set; }public bool Cancel { get; set; }Public ReadWrite Property Cancel As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true to cancel the drag action; otherwise, false. The default is false.

Remarks

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

Data Data Data Data

Gets the data payload associated with a drag action.

public : DataPackage Data { get; }public DataPackage Data { get; }Public ReadOnly Property Data As DataPackage// This API is not available in Javascript.
Value
DataPackage DataPackage DataPackage DataPackage

The data payload. The default is an empty DataPackage.

Remarks

In your DragStarting event handler, use the DataPackage.SetData method to provide the data being dragged.

DragUI DragUI DragUI DragUI

Gets the visual representation of the data being dragged.

public : DragUI DragUI { get; }public DragUI DragUI { get; }Public ReadOnly Property DragUI As DragUI// This API is not available in Javascript.
Value
DragUI DragUI DragUI DragUI

The visual representation of the data being dragged.

Remarks

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Supports asynchronous drag-and-drop operations by creating and returning a DragOperationDeferral object.

public : DragOperationDeferral GetDeferral()public DragOperationDeferral GetDeferral()Public Function GetDeferral() As DragOperationDeferral// This API is not available in Javascript.
Returns

A deferral object that you can use to identify when the generation of the data package is complete.

GetPosition(UIElement) GetPosition(UIElement) GetPosition(UIElement) GetPosition(UIElement)

Returns a drop point that is relative to a specified UIElement.

public : Point GetPosition(UIElement relativeTo)public Point GetPosition(UIElement relativeTo)Public Function GetPosition(relativeTo As UIElement) As Point// This API is not available in Javascript.
Parameters
relativeTo
UIElement UIElement UIElement UIElement

The UIElement for which to get a relative drop point.

Returns

A point in the coordinate system that is relative to the element specified in relativeTo.

See Also