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
| 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.
The allowed data operations.
| 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.
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.
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.
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.
The UIElement for which to get a relative drop point.