Beispiel #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     departementReceived    = (Departement)Application.Current.Resources["DepartementSelect"];
     labelNom.Text          = departementReceived.DepartementString;
     labelPopulation.Text   = departementReceived.InfoPopulationString;
     labelSurface.Text      = departementReceived.InfoSurfaceString;
     BoutonRetour.IsEnabled = this.Frame.CanGoBack;
 }
        private void listeDepartements_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            departementSelect = (Departement)listeDepartements.SelectedItem;
            Application.Current.Resources["DepartementSelect"] = departementSelect;
            Frame rootFrame = Window.Current.Content as Frame;

            rootFrame.Navigate(typeof(InfoDepartementPage));
            BoutonRetour.IsEnabled = this.Frame.CanGoBack;
        }