Try Microsoft Edge A fast and secure browser that's designed for Windows 10 No thanks Get started
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Specifies the buttons to include when you display a message box.
public enum MessageBoxButton
This enumeration is used by the MessageBox.Show(String, String, MessageBoxButton) method overload.
The following code example demonstrates how to use this enumeration.
MessageBoxResult result = MessageBox.Show("Would you like to see the simple version?", "MessageBox Example", MessageBoxButton.OKCancel); if (result == MessageBoxResult.OK) { MessageBox.Show("No caption, one button."); }
Windows Phone