How to improve the MAUI Button responsiveness in a "this.Dispatcher.Dispatch" thread?

Marc George 171 Reputation points
2023-03-28T01:33:23.4733333+00:00

I have a MAUI application with two "this.Dispatcher.Dispatch"ed NavigationPages launched from the App class, both of which have two ImageButtons both of which have extremely poor responsiveness as compared to the buttons of other NavigationPages which are launched from the MasterPage class.

I know they are enabled because if I tap them quickly and numerously, eventually they will respond. I have tried the three types of events for them with the same result. It appears that the "clicking" period is very short but repetitive.

Is there a way to improve their responsiveness? Focusing doesn't seem to be effective.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marc George 171 Reputation points
    2023-04-20T17:04:31.2133333+00:00

    The issue was caused by the fact that the "Clicked" button clickable surface area is not associated with the size of the button, but the settings of the "RequestedHeight" and "RequestedWidth" button parameters. The default values on my devices were 2.5. Setting the parameters to the height of the containing row resolved the issue.