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?
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?
The WPF equivalent would be the System.Windows.MessageBox
. It has a quite similar interface, but uses other enumerations for parameters and return value.
Yes. It's called System.Windows.MessageBox.
http://msdn.microsoft.com/en-us/library/system.windows.messagebox.aspx
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