If you’ll be fine with the OK and Cancel buttons, you can also use Messagebox, although it doesn’t look so fantastic.
MessageBoxResult result = MessageBox.Show("Lorem ipsum doso mitus dasam ...",
"The title", MessageBoxButton.OKCancel);
if (result == MessageBoxResult.OK) {
MessageBox.Show("You clicked OK");
}
source
share