我以Xamarin形式创建网格,例如
[![<StackLayout>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Frame HasShadow="True" CornerRadius="10" Margin="20,-40,20,0" Padding="0" HeightRequest="120" VerticalOptions="Start" Grid.Row="1" BackgroundColor="Gray">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackLayout Grid.Row="0" HorizontalOptions="CenterAndExpand">
<Label Text="" FontSize="Large"/>
</StackLayout>
<StackLayout Grid.Row="1" HorizontalOptions="CenterAndExpand">
<Label Text=""/>
</StackLayout>
</Grid>
</Frame>
<Frame HasShadow="True" CornerRadius="10" Margin="20,-40,20,0" Padding="0" HeightRequest="300" VerticalOptions="Center" Grid.Row="2" HorizontalOptions="Fill" BackgroundColor="Gray" >
</Frame>
<Frame HasShadow="True" CornerRadius="10" Margin="20,-40,20,0" Padding="0" HeightRequest="100" VerticalOptions="Center" Grid.Row="3" HorizontalOptions="Fill" BackgroundColor="Gray">
</Frame>
</Grid>
</StackLayout>][1]][1]
1:
我要删除此空格吗?我是Xamarin的新手,所以有什么帮助。对不起,英语不好。