-
Notifications
You must be signed in to change notification settings - Fork 11
Commands
Gulam Ali H edited this page Dec 31, 2023
·
1 revision
You can also use the CommandsEffect to quickly add Tap and LongTap features to your views an example can be found below, it also has a parameter property for these commands, Note it comes with the ripple effect namespace.
Add the namespace:
xmlns:touchEffects="clr-namespace:Maui.FreakyEffects.TouchEffects;assembly=Maui.FreakyEffects"
Use it on your view:
<ContentView
touchEffects:Commands.LongTap="{Binding SomeUsefulLongTapCommand}"
touchEffects:Commands.Tap="{Binding SomeUsefulCommand}"/>
Both of them have their separate Parameter property.