7d7451e907dd940403e93123b1d4dc39b8da8831
[platform/core/csapi/xsf.git] / src / XSF / Xamarin.Forms.Core / SwipeEventArgs.cs
1 using System;
2
3 namespace Xamarin.Forms
4 {
5         public abstract class BaseSwipeEventArgs : EventArgs
6         {
7                 protected BaseSwipeEventArgs(SwipeDirection swipeDirection)
8                 {
9                         SwipeDirection = swipeDirection;
10                 }
11
12                 public SwipeDirection SwipeDirection { get; set; }
13         }
14
15         public class SwipeStartedEventArgs : BaseSwipeEventArgs
16         {
17                 public SwipeStartedEventArgs(SwipeDirection swipeDirection) : base(swipeDirection)
18                 {
19
20                 }
21         }
22
23         public class SwipeChangingEventArgs : BaseSwipeEventArgs
24         {
25                 public SwipeChangingEventArgs(SwipeDirection swipeDirection, double offset) : base(swipeDirection)
26                 {
27                         Offset = offset;
28                 }
29
30                 public double Offset { get; set; }
31         }
32
33         public class SwipeEndedEventArgs : BaseSwipeEventArgs
34         {
35                 public SwipeEndedEventArgs(SwipeDirection swipeDirection) : base(swipeDirection)
36                 {
37
38                 }
39         }
40 }