DragStartingEventArgs DragStartingEventArgs DragStartingEventArgs DragStartingEventArgs Class


Provides event data for the DragStarting event.

public : sealed class DragStartingEventArgs : RoutedEventArgs
struct winrt::Windows::UI::Xaml::DragStartingEventArgs : RoutedEventArgs
public sealed class DragStartingEventArgs : RoutedEventArgs
Public NotInheritable Class DragStartingEventArgs Inherits RoutedEventArgs

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Version history

Windows version SDK version Value added
1607 14393 AllowedOperations


AllowedOperations AllowedOperations AllowedOperations AllowedOperations

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

Cancel Cancel Cancel Cancel

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

Data Data Data Data

Gets the data payload associated with a drag action.

DragUI DragUI DragUI DragUI

Gets the visual representation of the data being dragged.

OriginalSource OriginalSource OriginalSource OriginalSource

Gets a reference to the object that raised the event. This is often a template part of a control rather than an element that was declared in your app UI.

(Inherited from RoutedEventArgs)


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

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

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

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

See also