Member 11183856 Ответов: 1

Пробелы между элементами управления на xamarin


Я использую следующий код для создания формы xamarin с помощью visual studio для android, когда смотрю на выходное множество пробелов между элементами управления.

Вложение содержит выходные данные в эмуляторе. Пожалуйста, дайте мне знать, как уменьшить пространство между элементами управления[Введите описание изображения здесь][1].
Использование кода для создания формы:
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             x:Class="SCC.Home">
    <ContentPage Title="Home" >
        <StackLayout>
        <Grid  ColumnSpacing="0" RowSpacing="0">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0" >
                <CarouselView x:Name="Imageslider">
                    <CarouselView.ItemTemplate>
                        <DataTemplate>
                            <Image Source="{Binding .}" Aspect="AspectFill" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"></Image>
                        </DataTemplate>
                    </CarouselView.ItemTemplate>
                </CarouselView>
            </Grid>
            <Label Grid.Row="1" HorizontalOptions="Center" VerticalOptions="CenterAndExpand" TextColor="Black" Text="About Us" VerticalTextAlignment="Center" FontSize="Large" />
            <Label Grid.Row="2" Padding="2,0,2,0" HorizontalTextAlignment="Center"  VerticalOptions="Center" HorizontalOptions="Center"  Text="Surabi Institute of Hotel Management and Fashion Technology recognized by Bharathidhasan University. Surabi Institute of Hotel Management and Fashion Technology was established in the year of 2006. The aim of the Founder is to Provide Hotel Management / Fashion Technology to the poor and Need of the Society">
            </Label>
            <!-- Place new controls here -->
            <Label Grid.Row="3"   
           HorizontalOptions="Center" VerticalOptions="CenterAndExpand" TextColor="#FF5F23" Text="Saravana Educational & Welfare Trust" />
        </Grid>
        </StackLayout>
    </ContentPage>
    <ContentPage Title="Courses" />
  <ContentPage Title="Contact Us" />
  
</TabbedPage>


Что я уже пробовал:

<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             x:Class="SCC.Home">
    <ContentPage Title="Home" >
        <StackLayout>
        <Grid  ColumnSpacing="0" RowSpacing="0">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0" >
                <CarouselView x:Name="Imageslider">
                    <CarouselView.ItemTemplate>
                        <DataTemplate>
                            <Image Source="{Binding .}" Aspect="AspectFill" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"></Image>
                        </DataTemplate>
                    </CarouselView.ItemTemplate>
                </CarouselView>
            </Grid>
            <Label Grid.Row="1" HorizontalOptions="Center" VerticalOptions="CenterAndExpand" TextColor="Black" Text="About Us" VerticalTextAlignment="Center" FontSize="Large" />
            <Label Grid.Row="2" Padding="2,0,2,0" HorizontalTextAlignment="Center"  VerticalOptions="Center" HorizontalOptions="Center"  Text="Surabi Institute of Hotel Management and Fashion Technology recognized by Bharathidhasan University. Surabi Institute of Hotel Management and Fashion Technology was established in the year of 2006. The aim of the Founder is to Provide Hotel Management / Fashion Technology to the poor and Need of the Society">
            </Label>
            <!-- Place new controls here -->
            <Label Grid.Row="3"   
           HorizontalOptions="Center" VerticalOptions="CenterAndExpand" TextColor="#FF5F23" Text="Saravana Educational & Welfare Trust" />
        </Grid>
        </StackLayout>
    </ContentPage>
    <ContentPage Title="Courses" />
  <ContentPage Title="Contact Us" />
  
</TabbedPage>

Member 11183856

https://i.stack.imgur.com/sZauY.png

выход из эмулятора