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