Support new features of Xamari.Forms (#186)
[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 OpenSwipeEventArgs : EventArgs
16         {
17                 public OpenSwipeEventArgs(OpenSwipeItem openSwipeItem)
18                 {
19                         OpenSwipeItem = openSwipeItem;
20                 }
21
22                 public OpenSwipeItem OpenSwipeItem { get; set; }
23         }
24
25         public class SwipeStartedEventArgs : BaseSwipeEventArgs
26         {
27                 public SwipeStartedEventArgs(SwipeDirection swipeDirection) : base(swipeDirection)
28                 {
29
30                 }
31         }
32
33         public class SwipeChangingEventArgs : BaseSwipeEventArgs
34         {
35                 public SwipeChangingEventArgs(SwipeDirection swipeDirection, double offset) : base(swipeDirection)
36                 {
37                         Offset = offset;
38                 }
39
40                 public double Offset { get; set; }
41         }
42
43         public class SwipeEndedEventArgs : BaseSwipeEventArgs
44         {
45                 public SwipeEndedEventArgs(SwipeDirection swipeDirection) : base(swipeDirection)
46                 {
47
48                 }
49         }
50 }