Xamarin表单动作栏 [英] Xamarin Forms Action Bar

查看:90
本文介绍了Xamarin表单动作栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以从Android中的Xamarin Forms-Portable(Xaml)中删除操作栏吗?

Is there any way to remove Action Bar from Xamarin Forms - Portable (Xaml) in android?

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

I want to remove less than sign (" < ") and the application icon which appears above the content page of 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表单动作栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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