public Command<object> ProductSelectedCommand
{
get
{
return new Command<object>(async (sender) =>
{
var args = sender as Syncfusion.ListView.XForms.ItemTappedEventArgs;
//Goto another page for the record items.
if (args.ItemType == Syncfusion.ListView.XForms.ItemType.Record)
await Shell.Current.GoToAsync("ProductDetail");
});
}
} |
<listView:SfListView x:Name="listView"
ItemsSource="{Binding AssetSummaries}"
AllowGroupExpandCollapse="True"
DragStartMode="OnDragIndicator,OnHold"
AllowSwiping="True"
IsScrollingEnabled="False"
SelectionMode="None"
GroupHeaderSize="60"
AutoFitMode="Height"
TapCommand="{Binding Path=BindingContext.ProductSelectedCommand, Source={x:Reference portfolioView}}"> |