106 references to SwipeDirection
Microsoft.Maui (17)
Platform\SwipeViewExtensions.cs (8)
22
internal static ISwipeItems? GetSwipeItemsByDirection(this ISwipeView swipeView,
SwipeDirection
? swipeDirection)
28
case
SwipeDirection
.Left:
31
case
SwipeDirection
.Right:
34
case
SwipeDirection
.Up:
37
case
SwipeDirection
.Down:
45
internal static bool IsHorizontalSwipe(this
SwipeDirection
? swipeDirection)
47
return swipeDirection ==
SwipeDirection
.Left || swipeDirection ==
SwipeDirection
.Right;
Primitives\SwipeDirection.cs (6)
23
public static
SwipeDirection
GetSwipeDirection(Point initialPoint, Point endPoint)
35
internal static
SwipeDirection
GetSwipeDirectionFromAngle(double angle)
38
return
SwipeDirection
.Up;
41
return
SwipeDirection
.Right;
44
return
SwipeDirection
.Down;
46
return
SwipeDirection
.Left;
Primitives\SwipeViewSwipeChanging.cs (1)
5
public record SwipeViewSwipeChanging(
SwipeDirection
SwipeDirection, double Offset);
Primitives\SwipeViewSwipeEnded.cs (1)
5
public record SwipeViewSwipeEnded(
SwipeDirection
SwipeDirection, bool IsOpen);
Primitives\SwipeViewSwipeStarted.cs (1)
5
public record SwipeViewSwipeStarted(
SwipeDirection
SwipeDirection);
Microsoft.Maui.Controls (40)
ISwipeGestureController.cs (1)
7
bool DetectSwipe(View sender,
SwipeDirection
direction);
Platform\GestureManager\GesturePlatformManager.iOS.cs (3)
256
var returnAction = new Action<
SwipeDirection
>((direction) =>
395
UISwipeGestureRecognizer CreateSwipeRecognizer(
SwipeDirection
direction, Action<
SwipeDirection
> action, int numFingers = 1)
SwipeGestureRecognizer.cs (24)
22
public static readonly BindableProperty DirectionProperty = BindableProperty.Create(nameof(Direction), typeof(
SwipeDirection
), typeof(SwipeGestureRecognizer), default(
SwipeDirection
));
42
public
SwipeDirection
Direction
44
get { return (
SwipeDirection
)GetValue(DirectionProperty); }
63
bool ISwipeGestureController.DetectSwipe(View sender,
SwipeDirection
direction)
68
var
detectedDirection = (
SwipeDirection
)(0);
75
detectedDirection |=
SwipeDirection
.Left;
84
detectedDirection |=
SwipeDirection
.Right;
93
detectedDirection |=
SwipeDirection
.Down;
102
detectedDirection |=
SwipeDirection
.Up;
115
public void SendSwiped(View sender,
SwipeDirection
direction)
127
public static bool IsLeft(this
SwipeDirection
self)
129
return (self &
SwipeDirection
.Left) ==
SwipeDirection
.Left;
131
public static bool IsRight(this
SwipeDirection
self)
133
return (self &
SwipeDirection
.Right) ==
SwipeDirection
.Right;
135
public static bool IsUp(this
SwipeDirection
self)
137
return (self &
SwipeDirection
.Up) ==
SwipeDirection
.Up;
139
public static bool IsDown(this
SwipeDirection
self)
141
return (self &
SwipeDirection
.Down) ==
SwipeDirection
.Down;
SwipeView\SwipedEventArgs.cs (2)
10
public SwipedEventArgs(object parameter,
SwipeDirection
direction)
20
public
SwipeDirection
Direction { get; private set; }
SwipeView\SwipeEventArgs.cs (5)
9
protected BaseSwipeEventArgs(
SwipeDirection
swipeDirection)
15
public
SwipeDirection
SwipeDirection { get; set; }
44
public SwipeStartedEventArgs(
SwipeDirection
swipeDirection) : base(swipeDirection)
54
public SwipeChangingEventArgs(
SwipeDirection
swipeDirection, double offset) : base(swipeDirection)
67
public SwipeEndedEventArgs(
SwipeDirection
swipeDirection, bool isOpen) : base(swipeDirection)
SwipeView\SwipeView.cs (5)
233
SwipeDirection
? _swipeDirection;
390
_swipeDirection =
SwipeDirection
.Right;
393
_swipeDirection =
SwipeDirection
.Down;
396
_swipeDirection =
SwipeDirection
.Left;
399
_swipeDirection =
SwipeDirection
.Up;
Microsoft.Maui.Controls.Compatibility (49)
iOS\EventTracker.cs (3)
274
var returnAction = new Action<
SwipeDirection
>((direction) =>
459
UISwipeGestureRecognizer CreateSwipeRecognizer(
SwipeDirection
direction, Action<
SwipeDirection
> action, int numFingers = 1)
iOS\Renderers\SwipeViewRenderer.cs (46)
35
SwipeDirection
? _swipeDirection;
433
return _swipeDirection ==
SwipeDirection
.Left || _swipeDirection ==
SwipeDirection
.Right;
455
if (_swipeDirection ==
SwipeDirection
.Left || _swipeDirection ==
SwipeDirection
.Right)
523
case
SwipeDirection
.Left:
526
case
SwipeDirection
.Right:
529
case
SwipeDirection
.Down:
532
case
SwipeDirection
.Up:
863
SwipeItems GetSwipeItemsByDirection(
SwipeDirection
swipeDirection)
869
case
SwipeDirection
.Left:
872
case
SwipeDirection
.Right:
875
case
SwipeDirection
.Up:
878
case
SwipeDirection
.Down:
901
case
SwipeDirection
.Left:
904
case
SwipeDirection
.Right:
907
case
SwipeDirection
.Up:
910
case
SwipeDirection
.Down:
926
case
SwipeDirection
.Left:
931
case
SwipeDirection
.Right:
936
case
SwipeDirection
.Up:
941
case
SwipeDirection
.Down:
957
case
SwipeDirection
.Left:
967
case
SwipeDirection
.Right:
977
case
SwipeDirection
.Up:
987
case
SwipeDirection
.Down:
1132
case
SwipeDirection
.Left:
1135
case
SwipeDirection
.Right:
1138
case
SwipeDirection
.Up:
1141
case
SwipeDirection
.Down:
1164
case
SwipeDirection
.Left:
1169
case
SwipeDirection
.Right:
1174
case
SwipeDirection
.Up:
1179
case
SwipeDirection
.Down:
1393
case
SwipeDirection
.Left:
1394
case
SwipeDirection
.Right:
1397
case
SwipeDirection
.Up:
1398
case
SwipeDirection
.Down:
1554
_swipeDirection =
SwipeDirection
.Up;
1557
_swipeDirection =
SwipeDirection
.Right;
1560
_swipeDirection =
SwipeDirection
.Left;
1563
_swipeDirection =
SwipeDirection
.Down;
1585
case
SwipeDirection
.Right:
1586
case
SwipeDirection
.Down:
1589
case
SwipeDirection
.Left:
1590
case
SwipeDirection
.Up: