Add LongPressGestureRecognizer documentation for .NET 11#3215
Add LongPressGestureRecognizer documentation for .NET 11#3215jfversluis wants to merge 5 commits intomainfrom
Conversation
Add comprehensive documentation for the new LongPressGestureRecognizer including API reference, XAML/C# examples, gesture state tracking, position detection, combining with other gestures, and a platform differences table. Content is gated behind net-maui-11.0 moniker. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Learn Build status updates of commit 2a85bbe:
|
| File | Status | Preview URL | Details |
|---|---|---|---|
| docs/fundamentals/gestures/long-press.md | View (>=net-maui-8.0) | Details | |
| docs/TOC.yml | ✅Succeeded | View (>=net-maui-8.0) |
docs/fundamentals/gestures/long-press.md
- Line 11, Column 189: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 13, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 15, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.Command'. - Line 16, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.CommandParameter'. - Line 17, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.MinimumPressDuration'. - Line 18, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.NumberOfTouchesRequired'. - Line 19, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.AllowableMovement'. - Line 20, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.State'. - Line 24, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 26, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.LongPressed'. - Line 26, Column 195: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressedEventArgs'. - Line 27, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.LongPressing'. - Line 27, Column 127: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressingEventArgs'. - Line 31, Column 88: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 31, Column 165: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.LongPressed'. - Line 31, Column 360: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 63, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.Command'. - Line 76, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.MinimumPressDuration'. - Line 88, Column 19: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.MinimumPressDuration'. - Line 92, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.LongPressing'. - Line 92, Column 139: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressingEventArgs.Status'. - Line 99, Column 90: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.AllowableMovement'. - Line 131, Column 112: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressedEventArgs'. - Line 131, Column 167: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressingEventArgs'. - Line 151, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'.
This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request.
For more details, please refer to the build report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 184f46a:
|
| File | Status | Preview URL | Details |
|---|---|---|---|
| docs/fundamentals/gestures/long-press.md | View (>=net-maui-8.0) | Details | |
| docs/TOC.yml | ✅Succeeded | View (>=net-maui-8.0) |
docs/fundamentals/gestures/long-press.md
- Line 11, Column 189: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 13, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 15, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.Command'. - Line 16, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.CommandParameter'. - Line 17, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.MinimumPressDuration'. - Line 18, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.NumberOfTouchesRequired'. - Line 19, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.AllowableMovement'. - Line 20, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.State'. - Line 24, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 26, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.LongPressed'. - Line 26, Column 195: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressedEventArgs'. - Line 27, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.LongPressing'. - Line 27, Column 127: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressingEventArgs'. - Line 31, Column 88: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 31, Column 165: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.LongPressed'. - Line 31, Column 360: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'. - Line 63, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.Command'. - Line 76, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.MinimumPressDuration'. - Line 88, Column 19: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.MinimumPressDuration'. - Line 92, Column 5: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.LongPressing'. - Line 92, Column 139: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressingEventArgs.Status'. - Line 99, Column 90: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer.AllowableMovement'. - Line 131, Column 112: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressedEventArgs'. - Line 131, Column 167: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressingEventArgs'. - Line 151, Column 3: [Warning: xref-not-found - See documentation]
Cross reference not found: 'Microsoft.Maui.Controls.LongPressGestureRecognizer'.
This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request.
For more details, please refer to the build report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
The LongPressGestureRecognizer API reference is not yet published, causing xref-not-found build warnings. Replace with backtick-formatted type names; existing published xrefs (GestureStatus, View, etc.) are kept as-is. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 24f30a8:
|
| File | Status | Preview URL | Details |
|---|---|---|---|
| docs/fundamentals/gestures/long-press.md | View (>=net-maui-8.0) | Details | |
| docs/TOC.yml | ✅Succeeded | View (>=net-maui-8.0) |
docs/fundamentals/gestures/long-press.md
- Line 179, Column 1: [Warning: moniker-zone-empty]
No intersection between zone and file level monikers. The result of zone level range string '<net-maui-11.0' is '', while file level monikers is 'net-maui-10.0', 'net-maui-8.0', 'net-maui-9.0'.
For more details, please refer to the build report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 4db2bb0:
|
| File | Status | Preview URL | Details |
|---|---|---|---|
| docs/fundamentals/gestures/long-press.md | View (>=net-maui-8.0) | Details | |
| docs/TOC.yml | ✅Succeeded | View (>=net-maui-8.0) |
docs/fundamentals/gestures/long-press.md
- Line 179, Column 1: [Warning: moniker-zone-empty]
No intersection between zone and file level monikers. The result of zone level range string '<net-maui-11.0' is '', while file level monikers is 'net-maui-10.0', 'net-maui-8.0', 'net-maui-9.0'.
For more details, please refer to the build report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
The <net-maui-11.0 range has no intersection with file-level monikers. Use <=net-maui-10.0 which correctly targets pre-.NET 11 versions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit ce87f5e: ✅ Validation status: passed
For more details, please refer to the build report. |
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description
Adds comprehensive documentation for the new
LongPressGestureRecognizerintroduced in .NET MAUI 11 (dotnet/maui#33432).Content added
docs/fundamentals/gestures/long-press.mdCommand,CommandParameter,MinimumPressDuration,NumberOfTouchesRequired,AllowableMovement,State)LongPressedandLongPressingwith their EventArgsGetPositionVersioning
All content is gated behind
::: moniker range=">=net-maui-11.0"with a fallback message for earlier versions.Related
Internal previews