Skip to content

Add more gesture recognizer sample pages to ControlCatalog#20983

Merged
MrJul merged 3 commits into
AvaloniaUI:masterfrom
jsuarezruiz:gestures-samples
Mar 25, 2026
Merged

Add more gesture recognizer sample pages to ControlCatalog#20983
MrJul merged 3 commits into
AvaloniaUI:masterfrom
jsuarezruiz:gestures-samples

Conversation

@jsuarezruiz

@jsuarezruiz jsuarezruiz commented Mar 25, 2026

Copy link
Copy Markdown
Member

What does the pull request do?

Restructures the existing GesturePage in ControlCatalog from a single monolithic page into a navigable gallery with dedicated sample pages for each gesture type, and adds a new swipe gesture demo.

image

swipegesturerecognizer

swipegesturerecognizer-linux

What is the current behavior?

The gesture sample page uses a TabControl with all gesture demos (pull, pinch/zoom, pinch/rotation) inlined in a single page. There is no swipe gesture demo.

What is the updated/expected behavior with this PR?

The GesturePage is now a NavigationPage gallery that links to four dedicated sample pages:

  • Pull Gesture (Touch / Pen): drag from colored border zones, ball tracks delta and springs back on release
  • Pinch / Zoom (Multi Touch): pinch to scale an image via composition visuals, scroll to pan when zoomed
  • Pinch / Rotation (Multi Touch): pinch to rotate a rectangle, angle drives a RotateTransform
  • Swipe Gesture (Touch / Pen / Mouse): new demo with configurable direction, threshold, and mouse support; shows live delta, velocity, and direction

Checklist

Breaking changes

None

Obsoletions / Deprecations

None

@jsuarezruiz jsuarezruiz requested a review from MrJul March 25, 2026 12:18
@avaloniaui-bot

Copy link
Copy Markdown

You can test this PR using the following package version. 12.0.999-cibuild0064009-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More samples :)
LGTM!

@MrJul MrJul added this pull request to the merge queue Mar 25, 2026
Merged via the queue into AvaloniaUI:master with commit ffa6406 Mar 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants