[英]Hide Navigation Bar Prism Xamarin
I have the following set in my view code behind我在后面的视图代码中有以下设置
NavigationPage.SetHasNavigationBar(this, false);
and I have it also in the XAML我也有它在 XAML
NavigationPage.HasNavigationBar="False"
However the navigation panel is still displaying when navigating with Prism and the follow code:但是,使用 Prism 和以下代码导航时,导航面板仍然显示:
await NavigationService.NavigateAsync("NavigationPage/RecipeListPage");
Navigating with the absolute method such as:使用绝对方法导航,例如:
NavigationService.NavigateAsync(new System.Uri("http://www.RecipeDatabase/RecipeListPage", System.UriKind.Absolute));
Fixes this issue.修复了这个问题。 Not sure why its needed.
不知道为什么需要它。 Also hiding with just the XAML code as well is sufficient.
也仅使用 XAML 代码隐藏就足够了。
Enjoy.享受。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.