Class MessageBoxBuilder
Message box builder.
public class MessageBoxBuilder
- Inheritance
-
MessageBoxBuilder
- Inherited Members
- Extension Methods
Constructors
MessageBoxBuilder()
public MessageBoxBuilder()
Properties
DefaultHandler
Default message box handler.
public static IMessageBoxHandler DefaultHandler { get; set; }
Property Value
Methods
Button(MessageBoxButton)
Set message box buttons.
public MessageBoxBuilder Button(MessageBoxButton button)
Parameters
button
MessageBoxButtonButton.
Returns
- MessageBoxBuilder
Builder.
Caption(string)
Set message box caption.
public MessageBoxBuilder Caption(string caption)
Parameters
caption
stringCaption.
Returns
- MessageBoxBuilder
Builder.
DefaultResult(MessageBoxResult)
Set message box default result.
public MessageBoxBuilder DefaultResult(MessageBoxResult defaultResult)
Parameters
defaultResult
MessageBoxResultDefault result.
Returns
- MessageBoxBuilder
Builder.
Error()
Set message box type to error.
public MessageBoxBuilder Error()
Returns
- MessageBoxBuilder
Builder.
Error(Exception)
Set message box type to error and set exception to show.
public MessageBoxBuilder Error(Exception error)
Parameters
error
ExceptionError.
Returns
- MessageBoxBuilder
Builder.
Handler(IMessageBoxHandler)
Set custom message box handler.
public MessageBoxBuilder Handler(IMessageBoxHandler handler)
Parameters
handler
IMessageBoxHandlerHandler.
Returns
- MessageBoxBuilder
Builder.
Icon(MessageBoxImage)
Set message box icon.
public MessageBoxBuilder Icon(MessageBoxImage icon)
Parameters
icon
MessageBoxImageIcon.
Returns
- MessageBoxBuilder
Builder.
Info()
Set message box type to info.
public MessageBoxBuilder Info()
Returns
- MessageBoxBuilder
Builder.
OkCancel()
Set message box type to ok/cancel.
public MessageBoxBuilder OkCancel()
Returns
- MessageBoxBuilder
Builder.
Options(MessageBoxOptions)
Set message box options.
public MessageBoxBuilder Options(MessageBoxOptions options)
Parameters
options
MessageBoxOptionsOptions.
Returns
- MessageBoxBuilder
Builder.
Owner(DependencyObject)
Set owner object.
public MessageBoxBuilder Owner(DependencyObject owner)
Parameters
owner
DependencyObjectOwner.
Returns
- MessageBoxBuilder
Builder.
Owner(Window)
Set owner window.
public MessageBoxBuilder Owner(Window owner)
Parameters
owner
WindowOwner.
Returns
- MessageBoxBuilder
Builder.
Question()
Set message box type to question.
public MessageBoxBuilder Question()
Returns
- MessageBoxBuilder
Builder.
Show()
Show message box.
public MessageBoxResult Show()
Returns
- MessageBoxResult
Result.
Text(string)
Set message box text.
public MessageBoxBuilder Text(string text)
Parameters
text
stringText.
Returns
- MessageBoxBuilder
Builder.
Warning()
Set message box type to warning.
public MessageBoxBuilder Warning()
Returns
- MessageBoxBuilder
Builder.
YesNo()
Set message box type to yes/no.
public MessageBoxBuilder YesNo()
Returns
- MessageBoxBuilder
Builder.
YesNoCancel()
Set message box type to yes/no/cancel.
public MessageBoxBuilder YesNoCancel()
Returns
- MessageBoxBuilder
Builder.