콘텐츠로 이동

MessageBox class

이 콘텐츠는 아직 번역되지 않았습니다.

Managed message box dialogs using MessageBoxWindow.

public static class MessageBox
name description
static AskYesNo(…) Shows a question with Yes and No buttons, blocking in a nested event loop until it closes, and returns whether Yes was chosen.
static AskYesNoAsync(…) Shows a question with Yes and No buttons and returns whether Yes was chosen.
static AskYesNoCancel(…) Shows a question with Yes, No and Cancel buttons, blocking in a nested event loop until it closes, and returns true for Yes, false for No, or null for Cancel.
static AskYesNoCancelAsync(…) Shows a question with Yes, No and Cancel buttons and returns true for Yes, false for No, or null for Cancel.
static Confirm(…) Shows a message with OK and Cancel buttons, blocking in a nested event loop until it closes, and returns whether OK was chosen.
static ConfirmAsync(…) Shows a message with OK and Cancel buttons and returns whether OK was chosen.
static Notify(…) Shows a message with an OK button, blocking in a nested event loop until it closes.
static NotifyAsync(…) Shows a message with an OK button and completes when it closes.
static Prompt(…) Shows a message box built from the options, blocking in a nested event loop until it closes, and returns its dialog result.
static PromptAsync(…) Shows a message box built from the options and returns its dialog result.