棱镜形式 - 看不到NavigationBar

时间:2018-06-11 10:18:40

标签: xamarin.forms prism

Xamarin.Forms:3.0.0.550

Prism:7.0.0.396

以下是我在App.xaml.cs中的代码段:



protected override void OnInitialized()
        {
            InitializeComponent();

            NavigationService.NavigateAsync("NavigationPage/CoursesPage");
        }

protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<NavigationPage>();
            containerRegistry.RegisterForNavigation<CoursesPage>();
            containerRegistry.RegisterForNavigation<MainPage>();
            containerRegistry.RegisterForNavigation<Content>();
        }
&#13;
&#13;
&#13;

运行后我在CoursesPage上看不到NavigationBar,即使设置了NavigationPage.HasBackButton =&#34; True&#34;在xaml文件中。

知道什么是错的吗?

0 个答案:

没有答案