Skip to main content

DXDialogWindow.ShowDialogWindow(MessageBoxButton, Nullable<MessageBoxResult>, Nullable<MessageBoxResult>) Method

Opens a window dialog with specified parameters and returns only when the newly opened window dialog is closed.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public MessageBoxResult ShowDialogWindow(
    MessageBoxButton dialogButtons,
    MessageBoxResult? defaultButton = null,
    MessageBoxResult? cancelButton = null
)

Parameters

Name Type Description
dialogButtons MessageBoxButton

A MessageBoxButton enumerator value that specifies the set of buttons displayed within the current DXDialogWindow.

Optional Parameters

Name Type Default Description
defaultButton Nullable<MessageBoxResult> null

A MessageBoxResult that specifies which dialog button is default.

cancelButton Nullable<MessageBoxResult> null

A MessageBoxResult that specifies which dialog button is Cancel.

Returns

Type Description
MessageBoxResult

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

See Also