DragStartedEventArgs Class

Definition

Provides data for the DragStarted event that occurs when a user drags a Thumb control with the mouse.

Equivalent WinUI class: Microsoft.UI.Xaml.Controls.Primitives.DragStartedEventArgs.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DragStartedEventArgs : RoutedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class DragStartedEventArgs : RoutedEventArgs
Public Class DragStartedEventArgs
Inherits RoutedEventArgs
Inheritance
DragStartedEventArgs
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

DragStartedEventArgs(Double, Double)

Initializes a new instance of the DragStartedEventArgs class.

Properties

HorizontalOffset

Gets the horizontal distance between the current mouse position and the thumb coordinates.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.Primitives.DragStartedEventArgs.HorizontalOffset.

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.

Equivalent WinUI property: Microsoft.UI.Xaml.RoutedEventArgs.OriginalSource.

(Inherited from RoutedEventArgs)
VerticalOffset

Gets the vertical distance between the current mouse position and the thumb coordinates.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.Primitives.DragStartedEventArgs.VerticalOffset.

Applies to

See also