Table of Contents

Interface IMessageBoxHandler

Namespace
Ecng.Xaml
Assembly
StockSharp.Xaml.dll

Abstraction for showing message boxes. Allows plugging custom implementations.

public interface IMessageBoxHandler
Extension Methods

Methods

Show(string, string, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions)

Shows a message box.

MessageBoxResult Show(string text, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options)

Parameters

text string

The message text.

caption string

The window caption.

button MessageBoxButton

The buttons to display.

icon MessageBoxImage

The icon to display.

defaultResult MessageBoxResult

The default selected result.

options MessageBoxOptions

Additional display and behavior options.

Returns

MessageBoxResult

The button pressed by the user.

Show(Window, string, string, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions)

Shows a message box with an explicit owner window.

MessageBoxResult Show(Window owner, string text, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options)

Parameters

owner Window

The owner window.

text string

The message text.

caption string

The window caption.

button MessageBoxButton

The buttons to display.

icon MessageBoxImage

The icon to display.

defaultResult MessageBoxResult

The default selected result.

options MessageBoxOptions

Additional display and behavior options.

Returns

MessageBoxResult

The button pressed by the user.