<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 
			 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
			 x:Class="WorkingWithListview.ContextActionsXaml"
			 Padding="0, 20, 0, 0"
			 Title="Context Actions">
	 <ListView x:Name="listView" ItemSelected="OnItemSelected">
		  <ListView.ItemTemplate>
		    <DataTemplate>
		      <ViewCell>
		      <ViewCell.ContextActions>
		      		<MenuItem Clicked="OnMore" CommandParameter="{Binding .}"  
			           Text="More" />
			       	<MenuItem Clicked="OnDelete" CommandParameter="{Binding .}"  
			           Text="Delete" IsDestructive="True" />
			   </ViewCell.ContextActions> 
		      	<StackLayout HorizontalOptions="StartAndExpand" Orientation="Horizontal">	
		      		<StackLayout Padding="5,0,0,0" VerticalOptions="StartAndExpand" Orientation="Vertical">
			        	<Label Text="{Binding .}" YAlign="Center" FontSize="Medium" />
			        	<Label Text="hint: trigger a context action" YAlign="Center" FontSize="Small" />
			        </StackLayout>
		         </StackLayout>
		      </ViewCell>
		    </DataTemplate>
		  </ListView.ItemTemplate>
		</ListView>
</ContentPage>
