簡體   English   中英

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>

據我所知,微軟在1809年改變了工具欄項目的高度,你的應用程序似乎沒有那么好。 所以你不應該使用SDK for 1809來編譯應用程序(但是一些較舊的),一切都會好的。

非常感謝!

問題是我無法使用舊版sdk版本編譯應用程序,因為我遇到此錯誤

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

編輯:我安裝了10.0.17134.0版本,現在一切正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM