private async void SetWallPaperButton_Click(object sender, RoutedEventArgs e) { try { await PersonalizationHelper.SetWallPaper(this.ImageViewModel.Post); } catch (Exception ex) { } }
private async void SetWallPaperButton_Click(object sender, RoutedEventArgs e) { try { await PersonalizationHelper.SetWallPaper(this.ImagesViewModel.SelectedImageViewModel.Post); } catch (Exception ex) { await new MessageDialog(ex.Message, "Error").ShowAsync(); } }