Table of Contents

Class MessageBoxBuilder

Namespace
Ecng.Xaml
Assembly
StockSharp.Xaml.dll

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

IMessageBoxHandler

Methods

Button(MessageBoxButton)

Set message box buttons.

public MessageBoxBuilder Button(MessageBoxButton button)

Parameters

button MessageBoxButton

Button.

Returns

MessageBoxBuilder

Builder.

Caption(string)

Set message box caption.

public MessageBoxBuilder Caption(string caption)

Parameters

caption string

Caption.

Returns

MessageBoxBuilder

Builder.

DefaultResult(MessageBoxResult)

Set message box default result.

public MessageBoxBuilder DefaultResult(MessageBoxResult defaultResult)

Parameters

defaultResult MessageBoxResult

Default 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 Exception

Error.

Returns

MessageBoxBuilder

Builder.

Handler(IMessageBoxHandler)

Set custom message box handler.

public MessageBoxBuilder Handler(IMessageBoxHandler handler)

Parameters

handler IMessageBoxHandler

Handler.

Returns

MessageBoxBuilder

Builder.

Icon(MessageBoxImage)

Set message box icon.

public MessageBoxBuilder Icon(MessageBoxImage icon)

Parameters

icon MessageBoxImage

Icon.

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 MessageBoxOptions

Options.

Returns

MessageBoxBuilder

Builder.

Owner(DependencyObject)

Set owner object.

public MessageBoxBuilder Owner(DependencyObject owner)

Parameters

owner DependencyObject

Owner.

Returns

MessageBoxBuilder

Builder.

Owner(Window)

Set owner window.

public MessageBoxBuilder Owner(Window owner)

Parameters

owner Window

Owner.

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 string

Text.

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.