ChaseFlorell / Feedback

Contact me here.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xamarin.Forms GridView ItemClick/Tap

muhaym opened this issue · comments

Referred your blog post for enabling Xamarin.Forms Gridview, but didn't find a way to pass command to event handler for ItemClick or Tap event.

Thanks for reaching out.
You can either use the Command and CommandParameter binding, or you can attach a TapGestureRecognizer to your ItemView

            var tapGestureRecognizer = new TapGestureRecognizer
            {
                Command = Command,
                CommandParameter = item1
            };

Hi, Can you please provide an example, I have implemented GridView, and on click on any item, I want my View Model realize an item and which item is clicked, using Command or Command Parameter.

Also current GridView implementation is crashing in windows phone and uwp apps.