Syncfusion.SfListView.XForms
Example 

ItemTemplate Property (SfListView)

Gets or sets the data template for ListViewItem.
Syntax
public Xamarin.Forms.DataTemplate ItemTemplate {get; set;}
Example
SfListView listView = new SfListView
{
   ItemsSource = bookInfo,
             
   // Define the template for displaying each item
   ItemTemplate = new DataTemplate(() =>
   {
      // Create a view with bindings for displaying each property.
      Label bookNameLabel = new Label() { FontSize = 18};
      bookNameLabel.SetBinding(Label.TextProperty, "BookName");
            
      Label bookAuthorLabel = new Label() { FontSize = 12 };
      bookAuthorLabel.SetBinding(Label.TextProperty, "BookAuthor");
            
      // returns a ViewCell.
      return new ViewCell
      {
        View = new StackLayout
        {
           Children = 
           {
                 bookNameLabel,
                 bookAuthorLabel
               }
        }
      };    
   })
};
AssemblyVersion

Syncfusion.SfListView.XForms: 17.3451.0.26

See Also