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

Setting up a proper NavigationPage

$
0
0

So I have a Login screen. When the user clicks login, I am doing the following from my Login page view model.

        Globals.NavigationPage = new NavigationPage(new Main());

        Device.BeginInvokeOnMainThread( () => {
            Globals.LoginPage.Navigation.PushModalAsync(Globals.NavigationPage);
        });

where Globals is a static class.

Is this correct? Is there a better pattern to use?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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