예제 #1
0
 private void UploadPhotoManagerView_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if (e.Key == System.Windows.Input.Key.Escape)
     {
         CancelButton.AutomationPeerInvoke();
     }
 }
예제 #2
0
 private void EditAlbumView_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         SaveButton.AutomationPeerInvoke();
     }
     else if (e.Key == Key.Escape)
     {
         CancelButton.AutomationPeerInvoke();
     }
 }