List view temple button handle in pal Xmas page

I have a list view in my page and I'm customising the template in a content view, and I have a button in that custom view how can I handle that button click event using this list view in Xmas page. I found it for code behind , but I am failing to do it with Xmas page

This is the link I found for codebehind, https://stackoverflow.com/questions/25976396/xamarin-forms-button-in-viewcell-how-to-handle-the-event

  <ListView ItemsSource="{Binding Products}"
                      CachingStrategy="RecycleElement" BackgroundColor="#ececec" SeparatorColor="Transparent"
                      RowHeight="120" x:Name="ProductsListView" ItemSelected="OnProductSelected">

                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <view:CardViewTemplate/>


                        </ViewCell>

                    </DataTemplate>
                </ListView.ItemTemplate>

            </ListView>

in CardViewTemplate, I have a button action.

Sign In or Register to comment.