I need to write a event behind a button, when i pressed it for 3 seconds a method must executes. If i released it before the 3 seconds, it doesnt do anything.
Any ideas?
Thanks!
I need to write a event behind a button, when i pressed it for 3 seconds a method must executes. If i released it before the 3 seconds, it doesnt do anything.
Any ideas?
Thanks!
Copyright © 2021 Jogjafile Inc.
Since Xamarin Forms 2.4, buttons have included
PressedandReleasedevents.Start a 3 second timer in the
Pressedevent. Cancel it in theReleasedevent if it hasn't fired.