-
The new I was using But the new Example: <!-- Using GestureRecognizers -->
<Grid>
<!-- Grid content -->
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{Binding PizzaCommand}" />
</Grid.GestureRecognizers>
</Grid>
<!-- Using TouchEffect -->
<Grid touch:TouchEffect.Command="{Binding PizzaCommand}"
touch:TouchEffect.NativeAnimation="True">
<!-- Grid content -->
</Grid>
<!-- Using TouchBehavior -->
<Grid>
<!-- Grid content -->
<Grid.Behaviors>
<toolkit:TouchBehavior DefaultAnimationDuration="250"
DefaultAnimationEasing="{x:Static Easing.CubicInOut}"
PressedOpacity="0.6"
Command="{Binding PizzaCommand}"/>
</Grid.Behaviors>
</Grid> Am I using it right? Thank you 🙂 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
This is very important when upgrading from Forms to MAUI! |
Beta Was this translation helpful? Give feedback.
-
Closed as Answered. |
Beta Was this translation helpful? Give feedback.
Thank you @bijington for your suggestion, I managed to create a custom attached behavior and it's working great :-)
If it can help others, here is my code below.
Usage
Custom behavior
Attached behavior