1
// Copyright © Microsoft Corporation.
2
// This source is subject to the Microsoft Source License for Silverlight Controls (March 2008 Release).
3
// Please see http://go.microsoft.com/fwlink/?LinkID=111693 for details.
4
// All other rights reserved.
8
namespace System.Windows.Controls.Primitives
11
/// Provides information about the DragCompleted event that occurs when a
12
/// user completes a drag operation with the mouse of a Thumb control.
14
public class DragDeltaEventArgs : RoutedEventArgs
16
public double HorizontalChange { get; private set; }
17
public double VerticalChange { get; private set; }
19
/// Initializes a new instance of the DragCompletedEventArgs class.
21
/// <param name="horizontalChange">
22
/// The horizontal offset of the mouse click with respect to the screen
23
/// coordinates of the Thumb.
25
/// <param name="verticalChange">
26
/// The vertical offset of the mouse click with respect to the screen
27
/// coordinates of the Thumb.
29
public DragDeltaEventArgs(double horizontalChange, double verticalChange)
32
HorizontalChange = horizontalChange;
33
VerticalChange = verticalChange;
38
/// Represents the methods that handle the DragDelta event.
40
/// <param name="sender">The current element along the event's route.</param>
41
/// <param name="e">The event arguments containing additional information about the DragDelta event.</param>
42
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1003:UseGenericEventHandlerInstances", Justification = "Included for compatibility with WPF.")]
43
public delegate void DragDeltaEventHandler(object sender, DragDeltaEventArgs e);