I have an app that uses the Navigation. The main page loads fine with the nav bar. When I try to push a new page to the navigation stack, it runs the code behind of the new page, but never renders the page. I tried invoking on the main thread and still no luck. I have code in a different app that works fine but I cannot get it working for this app. There are no exceptions in the log. It just never renders. What am I missing here?
Xamarin.Forms.Device.BeginInvokeOnMainThread(async () => {
try {
await Navigation.PushAsync(versePage);
}
catch(Exception ex) {
Debug.WriteLine(ex.Message);
}
Amendment:
When I look at the stack the page is in the stack. This just makes no sense.
Xamarin.Forms.Device.BeginInvokeOnMainThread(async () => {
try {
await Navigation.PushAsync(versePage);
var stack = this.Navigation.NavigationStack;
}
catch(Exception ex) {
Debug.WriteLine(ex.Message);
}
});