In my Xamarin.Forms project I have a grid with 2 rows and 3 columns. In row1 I have a label, in row2 I have a stackpanel vertical. There seems to be a huge space between the label and the stackpanel, how do I remove this spacer?
I have tried using rowspacing=0 but it is not working. any ideas?
if I remove the stackpanel and just use labels in different rows the space gets removed... but I want to keep the stackpanel
this is the code...
<Grid Grid.Row="1" Grid.Column="0" RowSpacing="0"
Margin="5"
BackgroundColor="{StaticResource backgroundColorWhite}">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" HorizontalOptions="Start"
Margin="5,5,0,0"
Text="{Binding MyUserSelections.SelectedClientName}"
TextColor="{StaticResource textColorBlack}"
FontSize="16"
FontAttributes="Bold"/>
<StackLayout Grid.Row="1" Grid.Column="0"
Orientation="Vertical"
Padding="0"
Margin="5,0,0,5"
Spacing="0">
<... elements .../>
</StackLayout>
<StackLayout Grid.Row="1" Grid.Column="1"
Padding="0"
Margin="0,0,0,5"
Spacing="0"
Orientation="Vertical"
HorizontalOptions="CenterAndExpand" >
<... elements .../>
</StackLayout>
<StackLayout Grid.Row="1" Grid.Column="2"
Padding="0"
Margin="0,0,5,0"
Spacing="0"
Orientation="Vertical"
HorizontalOptions="End" >
<... elements .../>
</StackLayout>
</Grid>