Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

ViewCell.ContextActions Menuitem not working and causes Listview not to work

ChrisVardonChrisVardon GBMember ✭✭

I have a ListView with ViewCell and a grid inside it which works well, but I have decided I want menuitems in there. However, since adding the ViewCell.Context and a menuitem the listview seems to have stopped working and no long gets populated. Any idea what is wrong here?

<ListView x:Name="lvItems" Grid.Column="0" BackgroundColor="Silver" ItemsSource="{Binding Items}" SeparatorVisibility="None" RowHeight="70" ItemTapped="Handle_ItemTapped"> <ListView.ItemTemplate> <DataTemplate> <ViewCell Height="70"> <ViewCell.ContextActions> <MenuItem Text="Delete" IsDestructive="true" /> </ViewCell.ContextActions> <Grid Padding="10, 10,0,0"> //stuff </Grid> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>

Sign In or Register to comment.