C# Class Cimbalino.Phone.Toolkit.Services.MessageBoxService

Represents an implementation of the IMessageBoxService.
Inheritance: IMessageBoxService
Show file Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
Show ( string text, string caption, MessageBoxButton button ) : MessageBoxResult

Displays a message box that contains the specified text, title bar caption, and response buttons.

Show ( string text ) : void

Displays a message box that contains the specified text and an OK button.

Show ( string text, string caption ) : void

Displays a message box that contains the specified text, title bar caption, and an OK button.

Show ( string text, string caption, IEnumerable buttons, Action selectedButton ) : void

Displays a message box that contains the specified text, title bar caption, and response buttons.

ShowAsync ( string text, string caption, IEnumerable buttons ) : Task

Displays a message box that contains the specified text, title bar caption, and response buttons.

Method Details

Show() public method

Displays a message box that contains the specified text, title bar caption, and response buttons.
public Show ( string text, string caption, MessageBoxButton button ) : MessageBoxResult
text string The message to display.
caption string The title of the message box.
button MessageBoxButton A value that indicates the button or buttons to display.
return MessageBoxResult

Show() public method

Displays a message box that contains the specified text and an OK button.
public Show ( string text ) : void
text string The message to display.
return void

Show() public method

Displays a message box that contains the specified text, title bar caption, and an OK button.
public Show ( string text, string caption ) : void
text string The message to display.
caption string The title of the message box.
return void

Show() public method

Displays a message box that contains the specified text, title bar caption, and response buttons.
public Show ( string text, string caption, IEnumerable buttons, Action selectedButton ) : void
text string The message to display.
caption string The title of the message box.
buttons IEnumerable The captions for message box buttons. The maximum number of buttons is two.
selectedButton Action The to be called once the operation is finished.
return void

ShowAsync() public method

Displays a message box that contains the specified text, title bar caption, and response buttons.
public ShowAsync ( string text, string caption, IEnumerable buttons ) : Task
text string The message to display.
caption string The title of the message box.
buttons IEnumerable The captions for message box buttons. The maximum number of buttons is two.
return Task