如何删除Xamarin.Forms导航栏? [英] How to remove the Xamarin.Forms Navigation Bar?

查看:281
本文介绍了如何删除Xamarin.Forms导航栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以从Android中的Xamarin.Forms-Portable(xaml)删除导航栏吗?

Is there any way to remove the Navigation Bar from Xamarin.Forms - Portable (xaml) in Android?

我要删除Xamarin.Forms xaml内容页面上方的小于符号"(<")和应用程序图标.

I want to remove the "less than sign" ('<') and the application icon which appears above the content page of the Xamarin.Forms xaml.

推荐答案

您可以使用Xamarin.Forms使用以下代码从Xaml中删除导航栏.

You can remove navigation bar from Xaml using Xamarin.Forms using below code.

NavigationPage.SetHasNavigationBar (this, false);

this代表当前页面/表单实例.

Where this stands for current page / form instance.

希望这会有所帮助!

这篇关于如何删除Xamarin.Forms导航栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆