Exemplo n.º 1
0
 private async void SetWallPaperButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         await PersonalizationHelper.SetWallPaper(this.ImageViewModel.Post);
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 2
0
 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();
     }
 }