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

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.2.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