Ejemplo n.º 1
0
 private async void NewCommandBinding_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     try
     {
         documentViewModel.SelectedItem = await documentViewModel.AddAsync(EditCallBack);
     }
     catch
     {
         documentViewModel.ErrorMessage = "Failed to create new document";
     }
 }