I would like to fit sflistview exactly on the screen horizontally. so all items should be visible. I tried like below
<sfListView:SfListView x:Name="list" IsVisible="False" ItemsSource="{Binding Items}" SelectionMode="Single"
SelectionBackgroundColor="Yellow" ItemSpacing="1" AllowSwiping="False" Orientation="Horizontal"
QueryItemSize="List_QueryItemSize" HorizontalOptions="CenterAndExpand" VerticalOptions="FillAndExpand" >
<sfListView:SfListView.LayoutManager>
<sfListView:LinearLayout />
</sfListView:SfListView.LayoutManager>
private void ListExercises_QueryItemSize(object sender, Syncfusion.ListView.XForms.QueryItemSizeEventArgs e)
{
e.ItemSize = Height / ItemCount;
e.Handled = true;
}
ItemCount is calculated based on ItemSource Count. Althought ItemSize is set correctly, listview doesnt fit exactly on screen width. Is it even possible?