views:

99

answers:

3

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

...or is it OK to use the WinForm message box?

+3  A: 

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

Fredrik Mörk
+2  A: 

Yes. It's called System.Windows.MessageBox.

http://msdn.microsoft.com/en-us/library/system.windows.messagebox.aspx

Rodney Richardson
+1  A: 

As the other say, there is one in the wpf namespace (System.Windows).

The problem is that it is the same old messagebox with OK/Cancel etc. Vista/Win7 has moved on to use Task Dialogs instead.

Unfortunately there is no easy standard interface for task dialogs. I use this one

adrianm