Conversation
luke-whos-here
left a comment
There was a problem hiding this comment.
A couple of minor comments on the doc itself. Some of the paths where the docs are stored are from an unused earlier version and are now redirected - sorry if it's confusing!
| }); | ||
| ``` | ||
|
|
||
| The SwipeGestureRecognizer raises a `InputElement.SwipeGestureEvent` during the swipe as the pointer moves. When the swipe ends, from the pointer being released or another gesture start, it raises a `InputElement.SwipeGestureEndedEvent`. |
There was a problem hiding this comment.
| The SwipeGestureRecognizer raises a `InputElement.SwipeGestureEvent` during the swipe as the pointer moves. When the swipe ends, from the pointer being released or another gesture start, it raises a `InputElement.SwipeGestureEndedEvent`. | |
| The SwipeGestureRecognizer raises an `InputElement.SwipeGestureEvent` during the swipe as the pointer moves. When the swipe ends, from the pointer being released or another gesture starting, it raises an `InputElement.SwipeGestureEndedEvent`. |
| The SwipeGestureRecognizer raises a `InputElement.SwipeGestureEvent` during the swipe as the pointer moves. When the swipe ends, from the pointer being released or another gesture start, it raises a `InputElement.SwipeGestureEndedEvent`. | ||
|
|
||
| ## Binding events | ||
| After the SwipeGestureRecognizer has been added to your control, you need to bind them in your code behind either through an inline handler or to an event function: |
There was a problem hiding this comment.
| After the SwipeGestureRecognizer has been added to your control, you need to bind them in your code behind either through an inline handler or to an event function: | |
| After the `SwipeGestureRecognizer `has been added to your control, you need to bind them in your code-behind either through an inline handler or to an event function: |
|
|
||
| You will probably use these properties most often: | ||
|
|
||
| | Property | Description | |
There was a problem hiding this comment.
Recommend adding a third column for defaults.
| ## More information | ||
|
|
||
| :::info | ||
| For the complete API documentation about this gesture recognizer, see the [SwipeGestureRecognizer API reference](/api/avalonia/input/gesturerecognizers/swipegesturerecognizer). | ||
| ::: | ||
|
|
||
| :::info | ||
| View the source code on _GitHub_ [`SwipeGestureRecognizer.cs`](https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Input/GestureRecognizers/SwipeGestureRecognizer.cs) | ||
| ::: | ||
|
|
||
| ## See also | ||
|
|
There was a problem hiding this comment.
| ## More information | |
| :::info | |
| For the complete API documentation about this gesture recognizer, see the [SwipeGestureRecognizer API reference](/api/avalonia/input/gesturerecognizers/swipegesturerecognizer). | |
| ::: | |
| :::info | |
| View the source code on _GitHub_ [`SwipeGestureRecognizer.cs`](https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Input/GestureRecognizers/SwipeGestureRecognizer.cs) | |
| ::: | |
| ## See also | |
| ## See also | |
| - [API reference](/api/avalonia/input/gesturerecognizers/swipegesturerecognizer). | |
| - [Source code](https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Input/GestureRecognizers/SwipeGestureRecognizer.cs) |
There was a problem hiding this comment.
So the reference/gestures path is a leftover from an earlier draft of the v12 docs restructure. We are now redirecting all docs in this path to docs/input-interaction/gestures. We'll be fine with just a single copy of the doc in that directory.
There was a problem hiding this comment.
This doc now redirects to docs/input-interaction/gestures as of the released version of the v12 docs. We really should retire duplicate invisible pages like this one, to avoid creating confusing situations such as this.
New documentation for the
SwipeGestureRecognizercovering properties (CanHorizontallySwipe, CanVerticallySwipe, Threshold, IsMouseEnabled), SwipeDirection enum, SwipeGestureEventArgs/SwipeGestureEndedEventArgs, and usage examples.