Xamarin ListView (SfListView) Overview

17 May 20212 minutes to read

The SfListView for Xamarin.Forms renders set of data items with Xamarin.Forms views or custom templates. Data can be grouped, sorted, and filtered with ease. The following table lists the key features of the Listview control in Xamarin.Forms.

Features Xamarin.Forms
(Android, iOS ,UWP ,WPF, and MacOS)
Scrolling
Sorting
Custom Sorting
Grouping
Custom Grouping
Filtering
Item Reordering
Linear layout
Grid layout
Item Size Customization
Auto Sizing
Caching
Selection
Load more
Pull to refresh
Swiping
Item Templating
Custom Group Header
Header and footer

Key features

  • Optimized view reusing strategy for enhanced performance.

  • Item templating for rich UI(User Interface).

  • Supports dynamic selection of UI for each item using the DataTemplateSelector.

  • AutoFit items based on the content of ItemTemplate.

  • Supports linear layout and grid layout.

  • Reordering items by dragging and dropping them in a linear layout with displaying custom UI in a template.

  • Orientation support.

  • Data operations such as sorting, grouping, and filtering.

  • Customizable group header with option to stick in view.

  • Selection with different selection modes and gestures.

  • Swiping template for loading views with custom actions.

  • Header and footer with sticky options.

  • Supports to load more data either automatically or manually at bottom when end of the list is reached and manually at top.

  • Supports for macOS with existing features along with key navigation.

Advantages of the SfListView over Xamarin.Forms ListView

  • Horizontal orientation support.

  • Support for different layouts such as linear layout and grid layout.

  • Supports for item swiping.

  • Supports for reordering items by drag and drop in linear layout.

  • Supports to load more items when reached scroll end.

  • Supports for sorting and filtering the data items.

  • Supports to stick the header, group header, and footer in view.

  • Supports to customize selection background color.

  • Supports to notify the scroll state changes.

Xamarin.Forms listview with items in group

NOTE

You can refer to our Xamarin ListView feature tour page for its groundbreaking feature representations. You can also explore our Xamarin.Forms ListView example to know how to render set of data items with Xamarin.Forms views or custom templates.