MVVMCross multi tap MvxSimpleTableViewSource

Hi,

I am developing a simple xamarin IOS MVVM cross application. I want to handle multiple events for MvxSimpleTableViewSource. At present i am using the below code for selection changed event.

set.Bind (source).For(s => s.SelectionChangedCommand).To(vm => vm.ItemSelectedCommand);

In MVXtableCell class I have the TouchesBegan event to capture double tap.

public override void TouchesBegan (NSSet touches, UIEvent evt)
{
base.TouchesBegan (touches, evt);
UITouch touch = touches.AnyObject as UITouch;
if (touch != null)
{
if (touch.TapCount == 2)
{
// do something with the double touch.
}
}
}

Its firing when i touch the cell but the SelectionChangedCommand also immediately fired after first tap.

In Droid i can bind the Icommands to ItemClick and ItemLongClick. But in IOS i dint find any solution to achieve the same.

Please help me to resolve this.

Thanks,
Subbiah K

Sign In or Register to comment.