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(String, DialogButtons, Boolean) Constructor

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

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public DXDialog(
    string title,
    DialogButtons dialogButtons,
    bool setButtonHandlers
)

#Parameters

Name Type Description
title String

A string value that specifies the dialog’s title. This value is assigned to the Title property.

dialogButtons DialogButtons

A DevExpress.Xpf.Core.DialogButtons enumeration value that specifies which buttons are displayed within the dialog. This value is assigned to the DXDialog.Buttons property.

setButtonHandlers Boolean

true to set the default button click handlers; otherwise false.

#Remarks

If false is passed as the setButtonHandlers parameter, click handlers for standard dialog buttons (such as the OK and Cancel buttons) will not be set.

See Also