Exemple #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     var viewModel = new MainViewModel(new LocationService());
     DataContext = viewModel;
 }
Exemple #2
0
 void MainPage_Loaded(object sender, System.Windows.RoutedEventArgs e)
 {
     var viewModel = new MainViewModel(new LocationService());
     DataContext = viewModel;
 }