xamarin.forms 汉堡图标

xamarin.forms hamburger icon

母版页和汉堡包按钮有问题,当菜单被隐藏时,按钮的高度不会填满高度(第一张图片),否则是(第二张图片)。我真的不明白。 有人可以帮助我吗?

非常感谢。

这里是要显示的页面

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:local="clr-namespace:DMInfoOrganizer"
         x:Class="DMInfoOrganizer.Impostazioni" Title="{local:Translate TxtImpostazioni}" >
<ContentPage.Content>
    <StackLayout>
        <Label x:Name="Lbl" Text="{local:Translate TxtImpostazioni}"            
          VerticalOptions="CenterAndExpand" 
            HorizontalOptions="CenterAndExpand" />
    </StackLayout>
</ContentPage.Content>

这里是主页

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:DMInfoOrganizer"
             x:Class="DMInfoOrganizer.MasterPage">
        <StackLayout>
        <ListView x:Name="lstMenu" x:FieldModifier="public">
                <ListView.ItemsSource>
                    <x:Array Type="{x:Type local:MasterPageItem}">
                    <local:MasterPageItem Title="{local:Translate TxtHome}" TargetType="{x:Type local:Home}" />
                    <local:MasterPageItem Title="{local:Translate TxtNuovaLibreria}" TargetType="{x:Type local:NuovaLibreria}" />
                    <local:MasterPageItem Title="{local:Translate TxtImpostazioni}" TargetType="{x:Type local:Impostazioni}" />
                </x:Array>
                </ListView.ItemsSource>
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <Grid Padding="5,10">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="30"/>
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Image Source="{Binding IconSource}" />
                                <Label Grid.Column="1" Text="{Binding Title}" />
                            </Grid>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </StackLayout>
</ContentPage>

据我所知,Microsoft 已在 1809 中更改了工具栏项目的高度,而您的应用似乎处理得不太好。所以你不应该使用 1809 的 SDK 来编译应用程序(但一些旧的),一切都会好起来的。

非常感谢!

问题是我无法使用旧的 sdk 版本编译应用程序,因为我有这个错误

This version of Win2D requires Windows SDK >= 10.0.17134.0, but TargetPlatformVersion is 10.0.16299.0.

编辑:我安装了 10.0.17134.0 版本,现在一切正常。