Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Navigation.push async from inside a detail Page

$
0
0

Hii, I have a master detail page in xamarin.forms project.
inside the detail page i have a button that must redirect me to another page. navigation.push.async is not working it give a null exception.

in my app.cs I have :
Current.MainPage = new RootPage { Detail = new NavigationPage(new HomePage()) };

(RootPage is my master and HomePage is the detail)
from HomePage I need to pushasync another detail Page... How to do this??

I know I can use new RootPage { Detail = new NavigationPage(new SettingsPage()) }; but i don't need to reset the navigation stack..

Thank you for your Help.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>