~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to class/Microsoft.SilverlightControls/Controls/Src/Common/DragDeltaEventArgs.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
Import upstream version 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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. 
 
5
 
 
6
using System;
 
7
 
 
8
namespace System.Windows.Controls.Primitives
 
9
{
 
10
    /// <summary> 
 
11
    /// Provides information about the DragCompleted event that occurs when a
 
12
    /// user completes a drag operation with the mouse of a Thumb control.
 
13
    /// </summary> 
 
14
    public class DragDeltaEventArgs : RoutedEventArgs
 
15
    {
 
16
        public double HorizontalChange { get; private set; }
 
17
        public double VerticalChange { get; private set; }
 
18
        /// <summary> 
 
19
        /// Initializes a new instance of the DragCompletedEventArgs class. 
 
20
        /// </summary>
 
21
        /// <param name="horizontalChange"> 
 
22
        /// The horizontal offset of the mouse click with respect to the screen
 
23
        /// coordinates of the Thumb.
 
24
        /// </param> 
 
25
        /// <param name="verticalChange">
 
26
        /// The vertical offset of the mouse click with respect to the screen
 
27
        /// coordinates of the Thumb. 
 
28
        /// </param> 
 
29
        public DragDeltaEventArgs(double horizontalChange, double verticalChange)
 
30
            : base() 
 
31
        {
 
32
            HorizontalChange = horizontalChange;
 
33
            VerticalChange = verticalChange;
 
34
        }
 
35
    } 
 
36
 
 
37
    /// <summary>
 
38
    /// Represents the methods that handle the DragDelta event. 
 
39
    /// </summary> 
 
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);
 
44