Remova o espaço entre o formulário ListViews Xamarin
eu tenho 3listViews
em uma página, estou tendo uma lacuna entre cadalistview
e eu não sei por que está ficando espaços.
Aqui está o meu código:
<Grid>
<ScrollView >
<StackLayout>
<ListView HasUnevenRows="True"
SeparatorColor="Red"
ItemsSource="{Binding GetAssignedTask}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal"
BackgroundColor="White" >
<Image Source="rsz_pnglogocom.png" />
<StackLayout>
<Label Text="Task 1"
TextColor="Black"
FontSize="Medium" />
<StackLayout Orientation="Horizontal">
<Label Margin="0,0,70,0"
Text="{Binding dtStart,StringFormat='{0:MMMM dd, yyyy}'}"
TextColor="Red"
HorizontalOptions="Center"/>
<Label Text="Waqas"
TextColor="Black"
HorizontalOptions="End"/>
</StackLayout>
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<StackLayout>
<Label Text="test"/>
</StackLayout>
<ListView HasUnevenRows="True"
SeparatorColor="Red"
ItemsSource="{Binding GetAssignedTask}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal"
BackgroundColor="LightPink" >
<Image Source="rsz_pnglogocom.png" />
<StackLayout>
<Label Text="Task 1"
TextColor="Black"
FontSize="Medium" />
<StackLayout Orientation="Horizontal">
<Label Margin="0,0,70,0"
Text="{Binding dtStart,StringFormat='{0:MMMM dd, yyyy}'}"
TextColor="Red"
HorizontalOptions="Center"/>
<Label Text="Waqas"
TextColor="Black"
HorizontalOptions="End"/>
</StackLayout>
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ScrollView>
</Grid>
Eu preciso me livrar desses espaços e exibirlistview
um após o outro, você pode conferir a imagem abaixo como está sendo exibidalistviews
.
Alguém pode me dizer como remover esses espaços?