How to properly use Gesture events like DoubleTapped in Unity?
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!
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!
-
sfernandez
Site Admin
- Posts: 3008
- Joined:
Re: How to properly use Gesture events like DoubleTapped in Unity?
Hi Jamieh, you missed the type where the event is defined:
That should work, I just verified it.
Code: Select all
<ScrollViewer noesis:Element.DoubleTapped="OnDoubleTapped"/>
Re: How to properly use Gesture events like DoubleTapped in Unity?
Cool, I figured it was something simple I was missing. Thanks!
-
sfernandez
Site Admin
- Posts: 3008
- Joined:
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 5 guests