Skip to main content
A newer version of this page is available. .

ThemedMessageBox.Show(IEnumerable<UICommand>, Window, String, UIElement, MessageBoxImage, Boolean, MessageBoxOptions, WindowStartupLocation, WindowTitleAlignment, Nullable<Boolean>) Method

Displays a ThemedMessageBox window. A result returned when the window is closed.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v21.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public static UICommand Show(
    IEnumerable<UICommand> messageBoxButtons,
    Window owner = null,
    string title = null,
    UIElement messageContent = null,
    MessageBoxImage icon = MessageBoxImage.None,
    bool usePngImages = false,
    MessageBoxOptions options = MessageBoxOptions.None,
    WindowStartupLocation windowStartupLocation = WindowStartupLocation.CenterOwner,
    WindowTitleAlignment titleAlignment = WindowTitleAlignment.Left,
    bool? showActivated = null
)

Parameters

Name Type Description
messageBoxButtons IEnumerable<UICommand>

A set of UICommands displayed in the ThemedMessageBox.

Optional Parameters

Name Type Default Description
owner Window null

A window that owns the ThemedMessageBox.

title String null

The window’s header text.

messageContent UIElement null

The window’s message content.

icon MessageBoxImage 0

An image displayed in the ThemedMessageBox.

usePngImages Boolean False

true, to use an image in the PNG format instead of SVG; otherwise, false.

options MessageBoxOptions 0

The ThemedMessageBox‘s display and association options.

windowStartupLocation WindowStartupLocation 2

The ThemedMessageBox‘s position when it starts.

titleAlignment WindowTitleAlignment 0

The header text alignment.

showActivated Nullable<Boolean> null

true, to activate a window when first shown; false, to deactivate a window when first shown; null, to use the framework’s ShowActivated value.

Returns

Type Description
UICommand

The ThemedMessageBox result value.

See Also