Skip to main content

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

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

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Package: DevExpress.Wpf.Controls

Declaration

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

Parameters

Name Type Description
title String

A String value that specifies the WinUIDialogWindow‘s title.

dialogButtons MessageBoxButton

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

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