Is there a standard message box in WPF, like WinForms' System.Windows.Forms.MessageBox.Show()
, or should I use the WinForms message box?
C# – MessageBox equivalent in WPF
c++messageboxwpf
Related Question
- C# – Deep cloning objects
- .net – How to use WPF bindings with RelativeSource
- C# – Should ‘using’ directives be inside or outside the namespace
- C# – Catch multiple exceptions at once
- C# – How to get a consistent byte representation of strings in C# without manually specifying an encoding
- C# – Get int value from enum in C#
- C# – WPF MessageBox window style
- C# – reason for C#’s reuse of the variable in a foreach
Best Solution
The WPF equivalent would be the
System.Windows.MessageBox
. It has a quite similar interface, but uses other enumerations for parameters and return value.