Issue
I'm building an application with Xamarin.Forms and a Portable Class Library. The app can be used on Android, iOS and UWP.
I made a page that works correct on each platform:
After clicking an item in the ListView, a new page will be opened:
Navigation.PushAsync(new CourseInfoPage(ID));
When that page is opened and I press the "Back-button" and navigate back to the page shown above, it looks like this:
So some controls disappear when I'm navigating (away and then) back to this page. This ONLY happens on Android. If I click somewhere in the white area, the controls still function but I don't get to see them.
What did I try:
protected override void OnAppearing()
{
base.OnAppearing();
Content = getContentPage();
}
protected override void OnDisappearing()
{
base.OnDisappearing();
this.Content = null;
}
But this doesn't solve the problem.
How do I fix this? What is the problem?
Solution
If you want to go back to previous Page you can use
PopAsync()
or
PopModalAsync()
Grab some informations about Xamarin.Forms Navigation here :) https://developer.xamarin.com/api/type/Xamarin.Forms.INavigation/
Answered By - Kuba
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.