我一直无法得到一个简单的测试工作,显示标题在我的Xamarin窗体应用程序的导航栏。我在下面提供我的代码,基本上当我在内容页面上设置标题并将内容页包装在导航页面中时,导航栏并不显示内容页面中相应的标题。
App.cs
public partial class App : Application
{
public App()
{
InitializeComponent();
Current.MainPage = new NavigationPage(new Presentation.Views.Setting
我正在创建一个xamarin表单应用程序,我想在页面之间导航时更改过渡。我不能使用,因为我使用的是ContentPage。我也读过xamarin论坛上著名的帖子,但对我来说什么都不起作用。这是链接。
我使用的是xamarin forms 2.3.4.247和android api level 25和appCompat 23.3.0。
有什么想法吗?
我的应用程序的主页正在检查用户信息。根据某些条件,弹出窗口显示导航到具有with视图的页面。我使用标准方法导航到它:
await Shell.Current.Navigation.PushAsync(new BindCardPage(user.uid), false);
但是当我第一次启动一个应用程序时,在尝试导航到一个网页视图页面后,NRE被抛出:
System.NullReferenceException: Object reference not set to an instance of an object.
at Xamarin.Forms.ShellSection.OnPushA
我正在使用Xamarin Android构建一个Xamarin.Forms应用程序,我的App类非常简单,包含一个页面,如下所示:
public App()
{
// The root page of your application
MainPage = new NavigationPage(new ContentPage()
{
Title = "My First Page!",
Content = new Label()
{
Text = "Test Page!"