Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

ViewCell.ContextActions is not working for Xamarin.iOS.

$
0
0

Hello Guys,

I am using ListView control for listing some records.
Also I have used "ViewCell.ContextActions" for delete list item.
This is working fine on Android, but for iOS it is not working.

Whenever I will call the ListView page, the application does nothing also it is not showing any exception.

<ListView x:Name="list" ItemSelected="OnSelection" ItemTapped="OnTap" IsPullToRefreshEnabled="true" Refreshing="OnRefresh"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.ContextActions> <MenuItem Clicked="OnMore" Text="More" CommandParameter="{Binding .}" /> <MenuItem Clicked="OnDelete" Text="Delete" IsDestructive="true" CommandParameter="{Binding .}" /> </ViewCell.ContextActions> <StackLayout Padding="15,0"> <Label Text="{Binding .}" /> </StackLayout> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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