Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ThemedMessageBox.Show(String, String, MessageBoxButton, Nullable<MessageBoxResult>, ThemedMessageBoxParameters) Method

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

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public static MessageBoxResult Show(
    string title,
    string text,
    MessageBoxButton messageBoxButtons,
    MessageBoxResult? defaultButton = null,
    ThemedMessageBoxParameters messageBoxParameters = null
)

#Parameters

Name Type Description
title String

The window’s header text.

text String

The window’s message text.

messageBoxButtons MessageBoxButton

A set of buttons displayed in the ThemedMessageBox.

#Optional Parameters

Name Type Default Description
defaultButton Nullable<MessageBoxResult> null

The ThemedMessageBox‘s default button. This button is focused when the ThemedMessageBox is shown.

messageBoxParameters ThemedMessageBoxParameters null

Properties that allow you to customize the ThemedMessageBox.

#Returns

Type Description
MessageBoxResult

The ThemedMessageBox result value.

See Also