Disable Command Execution #17306
Unanswered
criss02-cs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I created a class that extends the Button class to add a simple LongPress functionality, however I would like to prevent any Commands that have been passed from being executed if the OnLongPress event is raised, how could I do that?
This is my class:
`public class CaButton : Button
{
private readonly Stopwatch _timer = new();
private bool _isCommandExecutable = true;
}
`
Beta Was this translation helpful? Give feedback.
All reactions