Page 1 of 1

How to properly use Gesture events like DoubleTapped in Unity?

Posted: 12 Apr 2021, 06:52
by Jamieh
I'm trying to use the gesture events like DoubleTapped in our Unity project (Noesis 3.0.11) and I'm getting errors.

I added

xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"

To my XAML and then put

noesis:DoubleTapped="OnDoubleTapped"

on my UIElement, in this case a ScrollViewer (though I tried it on a Grid like the example showed as well.

When I do this, my Unity project generates the following error:

Unknown member ScrollViewer.NoesisGUIExtensions.DoubleTapped

I'm clearly missing something here. Can you point me to the syntax I should be using in the XAML?

Thanks!

Re: How to properly use Gesture events like DoubleTapped in Unity?

Posted: 14 Apr 2021, 11:15
by sfernandez
Hi Jamieh, you missed the type where the event is defined:
<ScrollViewer noesis:Element.DoubleTapped="OnDoubleTapped"/>
That should work, I just verified it.

Re: How to properly use Gesture events like DoubleTapped in Unity?

Posted: 14 Apr 2021, 17:31
by Jamieh
Cool, I figured it was something simple I was missing. Thanks!

Re: How to properly use Gesture events like DoubleTapped in Unity?

Posted: 19 Apr 2021, 10:31
by sfernandez
Glad to help.