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