如何删除 Xamarin.Forms 导航栏? [英] How to remove the Xamarin.Forms Navigation Bar?
本文介绍了如何删除 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屋!
查看全文