wpf-devexpress-dot-xpf-dot-core-dot-themedmessagebox-dot-z-z0.md
Displays a ThemedMessageBox window. A result returned when the window is closed.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public static UICommand Show(
string text,
IEnumerable<UICommand> messageBoxButtons,
Window owner = null,
string title = null,
MessageBoxImage icon = MessageBoxImage.None,
bool usePngImages = false,
MessageBoxOptions options = MessageBoxOptions.None,
WindowStartupLocation windowStartupLocation = WindowStartupLocation.CenterOwner,
WindowTitleAlignment titleAlignment = WindowTitleAlignment.Left,
bool? showActivated = null
)
Public Shared Function Show(
text As String,
messageBoxButtons As IEnumerable(Of UICommand),
owner As Window = Nothing,
title As String = Nothing,
icon As MessageBoxImage = MessageBoxImage.None,
usePngImages As Boolean = False,
options As MessageBoxOptions = MessageBoxOptions.None,
windowStartupLocation As WindowStartupLocation = WindowStartupLocation.CenterOwner,
titleAlignment As WindowTitleAlignment = WindowTitleAlignment.Left,
showActivated As Boolean? = Nothing
) As UICommand
| Name | Type | Description |
|---|---|---|
| text | String |
The window’s message text.
| | messageBoxButtons | IEnumerable<UICommand> |
A set of UICommands displayed in the ThemedMessageBox.
|
| Name | Type | Default | Description |
|---|---|---|---|
| owner | Window | null |
The window that owns the ThemedMessageBox.
| | title | String | null |
The window’s header text.
| | icon | MessageBoxImage | None |
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 | None |
The ThemedMessageBox‘s display and association options.
| | windowStartupLocation | WindowStartupLocation | CenterOwner |
The ThemedMessageBox‘s position when it starts.
| | titleAlignment | WindowTitleAlignment | Left |
The header text alignment.
| | showActivated | Nullable<Boolean> | null |
true to activate the window when it is first shown; false to deactivate the window when it is first shown; null to use the framework’s ShowActivated value.
|
| Type | Description |
|---|---|
| UICommand |
The clicked button’s UICommand value.
|
See Also