How to display a message box inside WPF windows? Below is the code I have used to display message box but the message box always displays at the center of the screen instead of inside the WPF form. Is this possible with MessageBox? An alternate way is to use my own custom form to display the message but if possible I would like to use MessageBox. Thanks!
private void Button1_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show(this,"The record is saved successfully", "Save", MessageBoxButton.OK, MessageBoxImage.Information);
}