简体   繁体   中英

Combine hamburger menu an navigation page, Xamarin.Forms

Is there an easy way to combine the hamburger menu with the navigation page on Xamarion.Forms?

Something this like this:

在此处输入图像描述

How could I do that?

you can use Title View of Xamarin.Forms, to create custom design of navigation bar.

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:TitleViewSample"
             x:Class="TitleViewSample.MainPage">
     
    <NavigationPage.TitleView>
        ...your Layout..
    </NavigationPage.TitleView>
 
</ContentPage>

Reference Link: https://www.andrewhoefling.com/Blog/Post/xamarin-forms-title-view-a-powerful-navigation-view

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM