I am developing an app using Prism and Xamarin Forms. I used Prism template to create the project in Visual Studio 2017 community edition.
Here is the app.cs page
protected override void OnInitialized()
{
InitializeComponent();
NavigationService.NavigateAsync("BasePage");
}
protected override void RegisterTypes()
{
Container.RegisterTypeForNavigation<BasePage>();
Container.RegisterTypeForNavigation<MainNavigationPage>();
Container.RegisterTypeForNavigation<MilkPurchasePage>();
Container.RegisterTypeForNavigation<TruckSheetPage>();
Container.RegisterTypeForNavigation<LocalSalePage>();
Container.RegisterTypeForNavigation<MembersPage>();
}
Now BasePage
contains Hamburger menu and from there it will navigate to MilkPurchasePage
Now everything works when I run the project on mobile but once I close the app I get
Unfortunately , MilkApp.Droid has stopped.
I only added user interface. No background code has been added other than navigation.
I tried to debug bug I am unable to get it in visual studio. I checked all errors in Error Settings too. But still I am unable to solve it.
Why I am getting this ?
答案 0 :(得分:0)
这实际上是Xamarin.Forms的一个问题。他们过去修正了这个问题,但看起来他们可能已经倒退了。您可以通过创建标准XF应用程序轻松地重现这一点。您应该将此作为错误提交给Xamarin。