Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DragStartingEventArgs Class

Definition

Namespace:
Microsoft.UI.Xaml

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides event data for the DragStarting event.

public ref class DragStartingEventArgs sealed : RoutedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DragStartingEventArgs final : RoutedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DragStartingEventArgs : RoutedEventArgs
Public NotInheritable Class DragStartingEventArgs
Inherits RoutedEventArgs
Inheritance
Object Platform::Object IInspectable RoutedEventArgs DragStartingEventArgs
Attributes

Properties

Name Description
AllowedOperations

Gets or sets a value that specifies which operations (none, move, copy, and/or link) are allowed by the source of the drag event.

Cancel

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

Data

Gets the data payload associated with a drag action.

DragUI

Gets the visual representation of the data being dragged.

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)

Methods

Name Description
GetDeferral()

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

GetPosition(UIElement)

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

Applies to

See also


Feedback

Was this page helpful?