The Xamarin.Forms ListView control renders a set of data items in vertical or horizontal orientation on a linear or grid structure. Supports all essential features such as swiping, template selectors, horizontal and vertical orientations, pull-to-refresh, load more, reordering items, autofitting items, and much more. The control also supports sorting, grouping, and filtering with optimizations for working with large amounts of data.
Features and Benefits of Xamarin ListView Control
The ListView provides the best possible performance on the Xamarin platform with an optimized reuse strategy, smooth scrolling experience, and virtualization, even when loading large data sets.
The ListView supports two different layouts: linear and grid. The linear layout arranges items in a single column, whereas the grid layout arranges items in a predefined number of columns. Both layouts are supported in horizontal listview.
Data binding works out-of-the-box for the most popular data sources such as Lists, ObservableCollection, and much more. The ListView has built-in support to load data from data sources and supports sorting, grouping, and filtering out-of-the-box.
Easily configure a horizontal ListView to load items in a horizontal orientation based on your business requirements.
Sorting - Sort items in ascending or descending order programmatically and in XAML. Custom sorting logic is also supported.
Grouping - Group items with easy-to-use APIs and use custom grouping logic. ListView also supports expanding and collapsing groups and freezing group headers. Learn more about Groping
Search items - Set predicates to easily filter items and view data as needed.
Real-time updates - Automatically update the UI when adding new items and deleting items in the underlying collection. Update the sorting and grouping when changing business objects.
Refresh the data source at runtime by performing pull-to-refresh action. Learn more about Pull to Refresh
User friendly interactions
Swiping - Associate swipe views with custom actions for each item. Swipe views are displayed by swiping from left to right or right to left over an item.
Load more - Load more data at runtime either automatically or manually when reaching end of the list. You can also load more data manually at the top of the list. The ListView supports customizing the loading indicator and load more buttons.
Built-in drag and drop - Reorder items by dragging them either with a long press or from the drag indicator view. ListView supports customizing item appearances while dragging.
Selection - Built-in support for selection with single, multiple, and none select modes by tap, double-tap, and hold selection gestures. The selected items can also be customized by adding any view.
Customizing UI and style
Custom template - Host any view or control to customize the ListView items using data templates. Supports customizing each item by dynamic selection of the UI using a data template selector.
Spacing - Specify the required space between items in the ListView for an elegant look and feel.
Sizing - Customize the size of the header, footer, group header, and items in ListView. It is also possible to autofit them based on their content.
Alternative row style - Apply alternating row style to the ListView items based on specific conditions for better data readability.
Easy and flexible way to use all necessary properties and commands of Xamarin.Forms ListView in the MVVM approach. Pull-to-refresh and load more are also supported seamlessly in the MVVM pattern.
Header and footer
Display a header view at the top of the control and footer view at the bottom of the control. Supports customizing the UI of both header and footer. Supports freezing and making it scrollable.
Auto row height
Dynamically change the size of items to enhance their readability.
Xamarin.Forms ListView items can be paged using the data pager control, which supports interactively manipulating data.
Get the Demo Application
Explore the full capabilities of our Xamarin controls on your device by installing our sample browser applications from the matching app stores.
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 20,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
email@example.com | Toll Free: 1-888-9 DOTNET