예제 #1
0
 private async void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     await Utilities.GetImagesFromCloud();
     _viewModel = new MainPageViewModel();
     this.DataContext = _viewModel;
 }
예제 #2
0
 protected override void OnActivated(EventArgs e)
 {
     if (_viewModel == null)
     {
         _viewModel = new MainPageViewModel();
         this.DataContext = _viewModel;
         base.OnActivated(e);
     }
 }
예제 #3
0
 protected override void OnActivated(EventArgs e)
 {
     _viewModel       = new MainPageViewModel();
     this.DataContext = _viewModel;
     base.OnActivated(e);
 }