private void NavigateToPage(GoToPageMessage message)
        {
            Frame rootFrame = Window.Current.Content as Frame;
            if(message.PageNumber == 1)
            {
                rootFrame.Navigate(typeof(Page2));
            }

        }
        private void NavigateToPage(GoToPageMessage message)
        {
            //Navigeren van mainpage naar page 2
            Frame rootFrame = Window.Current.Content as Frame;
            if(message.PageNumber == 1)
            {
                rootFrame.Navigate(typeof(Page2));
            }
            else if(message.PageNumber == 2)//Navigeren van mainpage naar weatherpage
            {
                rootFrame.Navigate(typeof(WeatherPage));
            }
            

        }
 private void GotoNewPage()
 {
     //GoToPageMessage message = new GoToPageMessage() { PageNumber = 1 };//Navigeren naar Page2
     GoToPageMessage message = new GoToPageMessage() { PageNumber = 2 };//Navigeren naar WeatherPage
     Messenger.Default.Send<GoToPageMessage>(message);
 }
 private void GotoNewPage()
 {
     GoToPageMessage message = new GoToPageMessage() { PageNumber = 1 };
     Messenger.Default.Send<GoToPageMessage>(message);
 }