Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Recognizing "Pressed" state with GestureRecognizers

$
0
0

Hello,

Is there a "Pressed" / "MouseDown" gesture recognizer? I would like to have a "touch" and "release" state for various UI elements like BoxView. I'd like it to change color when pressed for example, and change back to the original color when released. Currently I'm doing this for taps:

GestureRecognizers.Add(new TapGestureRecognizer
{
Command = new Command(() =>
{
OnClicked(EventArgs.Empty);
}),
NumberOfTapsRequired = 1
});


Viewing all articles
Browse latest Browse all 58056

Trending Articles