Is there a MessageBox equivalent in WPF?

Makach picture Makach · Sep 30, 2010 · Viewed 338.7k times · Source

Is there a standard message box in WPF, like WinForms' System.Windows.Forms.MessageBox.Show(), or should I use the WinForms message box?

Answer

Fredrik Mörk picture Fredrik Mörk · Sep 30, 2010

The WPF equivalent would be the System.Windows.MessageBox. It has a quite similar interface, but uses other enumerations for parameters and return value.