Jamieh
Topic Author
Posts: 58
Joined: 12 Apr 2019, 00:30

How to properly use Gesture events like DoubleTapped in Unity?

12 Apr 2021, 06:52

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!

Tags:
 
User avatar
sfernandez
Site Admin
Posts: 2255
Joined: 22 Dec 2011, 19:20

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

14 Apr 2021, 11:15

Hi Jamieh, you missed the type where the event is defined:
<ScrollViewer noesis:Element.DoubleTapped="OnDoubleTapped"/>
That should work, I just verified it.
 
Jamieh
Topic Author
Posts: 58
Joined: 12 Apr 2019, 00:30

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

14 Apr 2021, 17:31

Cool, I figured it was something simple I was missing. Thanks!
 
User avatar
sfernandez
Site Admin
Posts: 2255
Joined: 22 Dec 2011, 19:20

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

19 Apr 2021, 10:31

Glad to help.

Who is online

Users browsing this forum: Google [Bot] and 1 guest