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

Inherited Members

Inherited properties

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(Double, Double, Boolean)
    DragCompletedEventArgs(Double, Double, Boolean)
    DragCompletedEventArgs(Double, Double, Boolean)
    DragCompletedEventArgs(Double, Double, Boolean)

    Initializes a new instance of the DragCompletedEventArgs class.

    public DragCompletedEventArgs(Double horizontalChange, Double verticalChange, Boolean canceled)public New(Double horizontalChange, Double verticalChange, Boolean canceled)Public Sub New(horizontalChange As Double, verticalChange As Double, canceled As Boolean)public DragCompletedEventArgs(Double horizontalChange, Double verticalChange, Boolean canceled)

    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 boolpublic bool Canceled { get; }

    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 doublepublic double HorizontalChange { get; }

    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 doublepublic double VerticalChange { get; }

    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.ComposableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Controls.Primitives.dll