Syncfusion.SfListView.XForms
Example 
Syncfusion.ListView.XForms Namespace > SfListView Class : SelectedItemTemplate Property

SelectedItemTemplate Property

Gets or sets the selected item template for selection.
Syntax
public Xamarin.Forms.DataTemplate SelectedItemTemplate {get; set;}
Example
SfListView listView = new SfListView();
listView.ItemsSource = viewModel.BookInfo;
listView.SelectedItemTemplate = new DataTemplate(() =>
{
   var grid = new Grid();
   grid.BackgroundColor = Color.FromHex("#4CA1FE");
   var bookNameLabel = new Label
   {
       BackgroundColor = Color.White,
       FontSize = 18,
       FontAttributes = FontAttributes.Bold,
   };
   bookNameLabel.SetBinding(Label.TextProperty, "BookName");
   grid.Children.Add(footerLabel);
            
   return grid;
});
AssemblyVersion

Syncfusion.SfListView.XForms: 17.3451.0.26

See Also