Hi,
I saw a lot of people with empty space at the bottom of their ListView, but in my case, I have empty space at the bottom of each Grid in my ListView.
Red is the background color of the grid, yellow is the background color of EACH element I put in my grid.
Here is the XAML:
<ContentPage.Content> <StackLayout BackgroundColor="White"> <ListView x:Name="ItemListView" ItemsSource="{Binding ItemList}" HasUnevenRows="True"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <Grid Margin="10" RowSpacing="1" BackgroundColor="Red" VerticalOptions="Fill"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="2*" /> </Grid.ColumnDefinitions> <Label Text="{Binding RTNavisionDescriptionEN}" FontSize="18" TextColor="Black" FontAttributes="Bold" BackgroundColor="Yellow" Grid.Row="0" Grid.Column="1" /> <Label Text="{Binding RTPartNumber}" FontSize="14" BackgroundColor="Yellow" Grid.Row="1" Grid.Column="1" /> <Label Text="{Binding RTBrand}" FontSize="14" BackgroundColor="Yellow" Grid.Row="2" Grid.Column="1" /> <Label Text="{Binding PartStatusRT}" FontSize="14" BackgroundColor="Yellow" Grid.Row="3" Grid.Column="1" /> <Label Text="Inventaire" FontSize="14" BackgroundColor="Yellow" Grid.Row="4" Grid.Column="1" /> <Label Text="Prix" FontSize="14" BackgroundColor="Yellow" Grid.Row="5" Grid.Column="1" /> <Image Source="{Binding ImageURL}" BackgroundColor="Yellow" Grid.Row="0" Grid.Column="0" Grid.RowSpan="6" /> </Grid> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> </StackLayout> </ContentPage.Content> </ContentPage>
Can anyone point me towards the reason for this empty space?
Thank you very much!