Skip to content

This repository contains the sample about how to autofit ListViewitem in Xamarin Forms ListView

Notifications You must be signed in to change notification settings

SyncfusionExamples/Autofit-listviewitem-in-xamarin.forms-listview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

AutoFitMode of ListView

AutoFit considers height of the item when SfListView.Orientation is vertical. When SfListView.Orientation is horizontal, it considers width of the item. The SfListView.GridLayout AutoFit all the items in a row and takes the maximum item height of the row and applies to all other items in the row.

<ContentPage xmlns:syncfusion="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms">
  <syncfusion:SfListView x:Name="listView" 
                    ItemSize="200"
                    AutoFitMode="Height"
                    ItemsSource="{Binding BookInfo}" />
</ContentPage>

To know more about item size customization in ListView, please refer here.

About

This repository contains the sample about how to autofit ListViewitem in Xamarin Forms ListView

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages