【问题标题】:Combine hamburger menu an navigation page, Xamarin.Forms结合汉堡菜单和导航页面,Xamarin.Forms
【发布时间】:2021-07-15 12:17:27
【问题描述】:

有没有一种简单的方法可以在 Xamarion.Forms 上将 hamburger menunavigation page 结合起来?

这样的:

我该怎么做?

【问题讨论】:

  • 您可以使用自己的自定义导航栏同时绘制汉堡菜单和导航来实现这一点,也许您可​​以看看this thread

标签: c# xamarin xamarin.forms navigation hamburger-menu


【解决方案1】:

您可以使用 Xamarin.Forms 的Title View 来创建导航栏的自定义设计。

<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>

参考链接:https://www.andrewhoefling.com/Blog/Post/xamarin-forms-title-view-a-powerful-navigation-view

【讨论】:

猜你喜欢
  • 2021-12-11
  • 1970-01-01
  • 2021-05-28
  • 1970-01-01
  • 2018-01-17
  • 1970-01-01
  • 2021-06-21
  • 2021-10-20
  • 1970-01-01
相关资源
最近更新 更多