From a22f5f3c66d0f1587288d24a6d3c8b72f78a6196 Mon Sep 17 00:00:00 2001 From: David Britch Date: Wed, 11 Oct 2023 15:53:00 +0100 Subject: [PATCH 1/2] Android support for secondary tap. --- docs/fundamentals/gestures/tap.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/fundamentals/gestures/tap.md b/docs/fundamentals/gestures/tap.md index 531ef6c2a0..21c57189b9 100644 --- a/docs/fundamentals/gestures/tap.md +++ b/docs/fundamentals/gestures/tap.md @@ -8,14 +8,14 @@ ms.date: 10/03/2022 A .NET Multi-platform App UI (.NET MAUI) tap gesture recognizer is used for tap detection and is implemented with the class. This class defines the following properties: -- , of type , which defines whether the primary or secondary mouse button, or both, triggers the gesture on Mac Catalyst and Windows. For more information, see [Define the button masks](#define-the-button-mask). +- , of type , which defines whether the primary or secondary mouse button, or both, triggers the gesture on Android, Mac Catalyst, and Windows. For more information, see [Define the button masks](#define-the-button-mask). - , of type `ICommand`, which is executed when a tap is recognized. - , of type `object`, which is the parameter that's passed to the `Command`. - , of type `int`, which represents the number of taps required to recognize a tap gesture. The default value of this property is 1. These properties are backed by objects, which means that they can be targets of data bindings, and styled. -The class also defines a event that's raised when a tap is recognized. The object that accompanies the event defines a property of type `object` that indicates the value passed by the `CommandParameter` property, if defined. The object also defines a property, and a `GetPosition` method. The property is of type , and can be used to determine whether the primary or secondary mouse button triggered the gesture recognizer on Mac Catalyst and Windows. The `GetPosition` method returns a `Point?` object that represents the position at which the tap gesture was detected. For more information about button masks, see [Define the button mask](#define-the-button-mask). For more information about the `GetPosition` method, see [Get the gesture position](#get-the-gesture-position). +The class also defines a event that's raised when a tap is recognized. The object that accompanies the event defines a property of type `object` that indicates the value passed by the `CommandParameter` property, if defined. The object also defines a property, and a `GetPosition` method. The property is of type , and can be used to determine whether the primary or secondary mouse button triggered the gesture recognizer on Android, Mac Catalyst, and Windows. The `GetPosition` method returns a `Point?` object that represents the position at which the tap gesture was detected. For more information about button masks, see [Define the button mask](#define-the-button-mask). For more information about the `GetPosition` method, see [Get the gesture position](#get-the-gesture-position). > [!WARNING] > A can't recognize more than a double tap on Windows. @@ -58,7 +58,7 @@ By default the will respond to single taps. ## Define the button mask -A object has a property, of type , that defines whether the primary or secondary mouse button, or both, triggers the gesture on Mac Catalyst and Windows. The enumeration defines the following members: +A object has a property, of type , that defines whether the primary or secondary mouse button, or both, triggers the gesture on Android, Mac Catalyst, and Windows. The enumeration defines the following members: - represents the primary mouse button, which is typically the left mouse button. - represents the secondary mouse button, which is typically the right mouse button. From 4c8a5a139868cbfd550c640a00f658cd2068040f Mon Sep 17 00:00:00 2001 From: David Britch Date: Wed, 11 Oct 2023 15:55:11 +0100 Subject: [PATCH 2/2] Edit. --- docs/whats-new/dotnet-8.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/whats-new/dotnet-8.md b/docs/whats-new/dotnet-8.md index fa593eac65..582f2305e5 100644 --- a/docs/whats-new/dotnet-8.md +++ b/docs/whats-new/dotnet-8.md @@ -28,6 +28,7 @@ For information about what's new in .NET 8, see [What's new in .NET 8](/dotnet/c - The `Grid.Add` overload that accepts 5 arguments has been added back to .NET MAUI. However, this method is deprecated and is only present to aid migrations from Xamarin.Forms. - gains an `AddWithSpan` extension method that adds a view to the `Grid` at the specified row and column with the specified row and column spans. - On iOS, `MauiUIApplicationDelegate` gains a `PerformFetch` method that can be overridden or consumed via the `iOSLifecycle.PerformFetch` delegate. For more information, see [iOS platform lifecycle events](~/fundamentals/app-lifecycle.md#ios). +- The class gains the ability to handle secondary taps on Android. For more information, see [Recognize a tap gesture](~/fundamentals/gestures/tap.md). The following types or members have been deprecated: