菜单首页背景色

时间:2019-03-08 15:29:12

标签: c# xamarin xamarin.forms

我在主页上使用了NavigationPage.TitleView控件,但填充整个标题部分似乎出现了问题。 HamburgerMenu图标来自menupage.xaml,并且背景色未设置?

  

我是否需要一个带有该背景颜色的新图标?

homepage.xaml

<NavigationPage.TitleView>
    <StackLayout Orientation="Horizontal" BackgroundColor="#22335c">
        <Label Text="N" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand" BackgroundColor="#22335c" TextColor="White"  />
        <Image Source=""  Aspect="AspectFit"  BackgroundColor="#22335c" />
    </StackLayout>
</NavigationPage.TitleView>

Menupage.xaml

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MenuPage"
             xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
             xmlns:telerik="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
             xmlns:model="clr-namespace:ReimbursementApp.Model"
             xmlns:page="clr-namespace:ReimbursementApp.Pages"
             Title="Menu"  Icon="HamburgerMenu.png" BackgroundColor="Black">

Color Problem with menu icon

0 个答案:

没有答案