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;
运行后我在CoursesPage上看不到NavigationBar,即使设置了NavigationPage.HasBackButton =&#34; True&#34;在xaml文件中。
知道什么是错的吗?