DragCompletedEventArgs DragCompletedEventArgs DragCompletedEventArgs Class

Provides data for the DragCompleted event that occurs when a user completes a drag operation with the mouse of a Thumb control.

Syntax

Declaration

public class DragCompletedEventArgspublic class DragCompletedEventArgsPublic Class DragCompletedEventArgs

Inheritance Hierarchy

Constructors summary

Initializes a new instance of the DragCompletedEventArgs class.

Properties summary

Gets a value that indicates whether the drag operation was canceled.

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

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

Constructors

  • DragCompletedEventArgs(System.Double,System.Double,System.Boolean)
    DragCompletedEventArgs(System.Double,System.Double,System.Boolean)
    DragCompletedEventArgs(System.Double,System.Double,System.Boolean)
    DragCompletedEventArgs(System.Double,System.Double,System.Boolean)

    Initializes a new instance of the DragCompletedEventArgs class.

    public DragCompletedEventArgs(System.Double horizontalChange,System.Double verticalChange,System.Boolean canceled)public DragCompletedEventArgs(System.Double horizontalChange,System.Double verticalChange,System.Boolean canceled)Public Function DragCompletedEventArgs(horizontalChange As System.Double,verticalChange As System.Double,canceled As System.Boolean) As

    Parameters

    • horizontalChange
      System.Double
      System.Double
      System.Double

      The horizontal change in position of the Thumb control, resulting from the drag operation.

    • verticalChange
      System.Double
      System.Double
      System.Double

      The vertical change in position of the Thumb control, resulting from the drag operation.

    • canceled
      System.Boolean
      System.Boolean
      System.Boolean

      A value that indicates whether the drag operation was canceled by a call to the CancelDrag() method.

Properties

  • Canceled
    Canceled
    Canceled
    Canceled

    Gets a value that indicates whether the drag operation was canceled.

    public bool Canceled { get; }public bool Canceled { get; }Public ReadOnly Property Canceled As bool

    Property Value

    • bool
      bool
      bool

      true if the drag operation was canceled; otherwise, false.

  • HorizontalChange
    HorizontalChange
    HorizontalChange
    HorizontalChange

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

    public double HorizontalChange { get; }public double HorizontalChange { get; }Public ReadOnly Property HorizontalChange As double

    Property Value

    • double
      double
      double

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

  • VerticalChange
    VerticalChange
    VerticalChange
    VerticalChange

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

    public double VerticalChange { get; }public double VerticalChange { get; }Public ReadOnly Property VerticalChange As double

    Property Value

    • double
      double
      double

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

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ComposableAttribute

Details

Assembly

Windows.UI.Xaml.Controls.Primitives.dll