CreateCustomCell with Canvas as button

Hi,

I’ve created an icon button using a Canvas in a CreateCustomCell.
It works fine except from that the PointerDown event is passed thru to the iOSTable firing of the action event of the iOSTable which I’d like to avoid.

I suppose I could have a flag or something that prevents the stuff in my actionevent to execute but that does not feel like a very nice solution.

Hi Dan,

As written in another post, it is better to use a UIGestureRecognizer with a Canvas.
If you still don’t want to go that way, you can try using the following code in the PointerDown event

eventInfo.Handled = True

Thanks Jrmie,

It works good as it is now (using the flag model I mentioned in my first post). But I’ll take a closer look at your suggestion.