Skip to content

Implements Tap and LongPress/LongClick gestures using Command and CommandParameter.

Notifications You must be signed in to change notification settings

Informatheus/Xamarin-TapAndLongGestureEffect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Xamarin-TapAndLongGestureEffect

Implements Tap and LongPress/LongClick gestures for Xamarin.Forms (Android & iOS) using Command and CommandParameter.

Install

Paste the three files in respective projects (Shared, Android and iOS), replacing the < namespaces > in each one.

Setup

Set the atributte on layout root

xmlns:effect="clr-namespace:<namespace>"

replacing the < namespace >.

Using

<View effect:GesturesEffect.Command="{Binding YourCommand}"
      effect:GesturesEffect.TapCommand="{Binding YourCommand}"
      effect:GesturesEffect.TapCommandParameter="{Binding .}"
      effect:GesturesEffect.LongCommand="{Binding YourCommand}"
      effect:GesturesEffect.LongCommand=Parameter"{Binding .}"
      >
      
      <View.Effects>
        <effect:GesturesEffect/>
      </View.Effects>      

Does not work on Cell objects.

About

Implements Tap and LongPress/LongClick gestures using Command and CommandParameter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages