I tried to used a Message Box Ressult to tried to navigate to other, or the same WPF Page when the MessageBox.Result was Cancel button, but I don't know if it´s possible. I tried to do something but not function (The comment line from MessageBoxResult.Cancel)
class RegistroFullBLL
{
........
foreach (object item in e.OldItems)
{
RegistroFullBO obj = item as RegistroFullBO;
//********* Caja de Confirmación de Mensaje**********
var msg1 = MessageBox.Show(" ¿ Desea borrar el Registro ?", "Confirmación de Solicitud", MessageBoxButton.OKCancel,
MessageBoxImage.Question);
if (msg1 == System.Windows.MessageBoxResult.OK)
{
//******** Se llama al método para borrar el Registro de la Base de Datos *********
BorrarFilaRegistro(obj.Registro);
MessageBox.Show(" Se borró el registro con éxito", "Solicitud Confirmada", MessageBoxButton.OK, MessageBoxImage.Information);
}
else if (msg1 == System.Windows.MessageBoxResult.Cancel)
{
//this.NavigationService.Navigate(new PagRegistro());
}
}