Repository navigation
|
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 🙂 |
Answered by
UlriCode
May 14, 2024
Replies: 2 comments 6 replies
|
This is very important when upgrading from Forms to MAUI! |
6 replies
|
Closed as Answered. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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