locked
What is OnStartup being changed(MVVM)

    Question

  • Inside app.cs(universal)

     protected override void ...(....)

            { 

              base.OnActivated(args);   

            MainPage page = new MainPage(); 

              page.Show 

          }


    OnStartup , page.show is not available.

    Wednesday, April 08, 2015 12:43 AM

Answers

  • To navigate to a page you should be using:

    Frame.Navigate(typeof(MainPage));

    Open up a new project and look at the code that's automatically inserted in App.xaml.cs to see more detail.

    Visit http://blog.grogansoft.com/ for Windows development fun.

    Wednesday, April 08, 2015 11:02 AM