Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Not able to tap on the edges of the Box view

$
0
0
            BoxView ImageTappedArea = new BoxView()
            {
                ClassId = content.id,
                BackgroundColor = Color.FromRgba(255, 255, 0, 0.5),
                //BackgroundColor = Color.Transparent,

                WidthRequest = 60,
                HeightRequest =380,
                HorizontalOptions = LayoutOptions.Start,
                VerticalOptions = LayoutOptions.Start,
                Rotation = 320,
            };
            Command ValidTapCommand = new Command(() =>
            {
                OnVeiwClicked(ImageTappedArea.ClassId);
            });
            var tgr = new TapGestureRecognizer { };
            tgr.Command = ValidTapCommand;
            ImageTappedArea.GestureRecognizers.Add(tgr);
            absoluteLayout.Children.Add(ImageTappedArea);

I added this box view in the absolute layout, now the problem is i am not able tap the corners of the boxview
i can able to tap the center of the boxview only, what i am doing wrong here
anybody please help me


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>