Skip to main content

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

DXDialog.ShowDialog(MessageBoxButton) Method

Opens a dialog window with the specified buttons and returns only when the dialog is closed.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public MessageBoxResult ShowDialog(
    MessageBoxButton button
)

#Parameters

Name Type Description
button MessageBoxButton

The System.Windows.MessageBoxButton value specifying the buttons to be displayed within the DXDialog. This value is assigned to the DXDialog.Buttons property.

#Returns

Type Description
MessageBoxResult

The System.Windows.MessageBoxResult value specifying an end-user choice.

#Remarks

The ShowDialog method allows you to specify buttons to be displayed within the DXDialog via the button parameter. The specified buttons are assigned to the DXDialog.Buttons property.

The method returns an end-user’s choice as a MessageBoxResult value.

See Also