How to handle long tap and keep input transparent?

I have made Label-derived control that handles long tap. For android it is like this:

        protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.Label> e)
        {
        base.OnElementChanged(e);

        if (e.NewElement != null)
        {
            var x = e.NewElement as SuperLabel;

            Control.LongClick += (s, ee) =>
            {

            };

        }

Obviously, I lost input transparency. When I put this SuperLabel on some controls that process clicks, and click on SuperLabel, nothing happens.
What should I do best to regain input transparency? Just do not want to route Control.Click event to XF control and its parents

Answers

  • SuperDev.2956SuperDev.2956 USMember ✭✭

    I can do also

                Control.Click += (s, ee) =>
                {
                    Element.???
                };
    

    But what should i do to Element so it can consider itself clicked?

Sign In or Register to comment.