ThemedMessageBox.Show(Window, String, String, MessageBoxButton, Nullable<MessageBoxResult>, ImageSource, 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.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core
Declaration
public static MessageBoxResult Show(
Window owner = null,
string title = null,
string text = null,
MessageBoxButton messageBoxButtons = MessageBoxButton.OKCancel,
MessageBoxResult? defaultButton = null,
ImageSource image = null,
MessageBoxOptions options = MessageBoxOptions.None,
WindowStartupLocation windowStartupLocation = WindowStartupLocation.CenterOwner,
WindowTitleAlignment titleAlignment = WindowTitleAlignment.Left,
bool? showActivated = null
)
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
owner | Window | *null* | A window that owns the ThemedMessageBox. |
title | String | *null* | The window’s header text. |
text | String | *null* | The window’s message text. |
messageBoxButtons | MessageBoxButton | 1 | A set of buttons displayed in the ThemedMessageBox. |
defaultButton | Nullable<MessageBoxResult> | *null* | The ThemedMessageBox‘s default button. This button is focused when the ThemedMessageBox is shown. |
image | ImageSource | *null* | An image displayed in the ThemedMessageBox. |
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 |
---|---|
MessageBoxResult | The ThemedMessageBox result value. |