Method Ask
Ask(string)
Asks a question and returns a boolean value indicating the user's response.
bool Ask(string question)
Parameters
questionstringThe question to ask.
Returns
- bool
True if the user answers yes, otherwise false.
Ask(string, string, MessageBoxImage)
Asks a question with the specified title and returns a boolean value indicating the user's response.
bool Ask(string question, string title, MessageBoxImage messageBoxImage)
Parameters
questionstringThe question to ask.
titlestringThe title of the dialog.
messageBoxImageMessageBoxImageThe image to display in the message box.
Returns
- bool
True if the user answers yes, otherwise false.
Ask(string, string, out string)
Asks a question with the specified title and returns a boolean value indicating the user's response.
bool? Ask(string question, string title, out string returnText)
Parameters
questionstringThe question to ask.
titlestringThe title of the dialog.
returnTextstringThe text returned by the user.
Returns
- bool?
True if the user answers yes, otherwise false.
Ask(string, string, out string, bool)
Asks a question with the specified title and returns a boolean value indicating the user's response.
bool? Ask(string question, string title, out string returnText, bool multiline = true)
Parameters
questionstringThe question to ask.
titlestringThe title of the dialog.
returnTextstringThe text returned by the user.
multilineboolIndicates whether the dialog supports multiline input.
Returns
- bool?
True if the user answers yes, otherwise false.