Skip to main content

DXDialogWindow(String, MessageBoxButton, Nullable<MessageBoxResult>, Nullable<MessageBoxResult>) Constructor

Initializes a new instance of the DXDialogWindow class with the specified settings.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public DXDialogWindow(
    string title,
    MessageBoxButton dialogButtons,
    MessageBoxResult? defaultButton = null,
    MessageBoxResult? cancelButton = null
)

Parameters

Name Type Description
title String

A String value that specifies the DXDialogWindow‘s title.

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.

See Also