Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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 Class

A dialog that is visually consistent with other controls that use DevExpress visual themes.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public class DXDialog :
    DXWindow

#Remarks

Tip

This class is outdated. Use one of the ThemedWindow.ShowDialog methods to display a Dialog.

Note

The DXDialogWindow class provides an improved implementation of a themed dialog window.

Example:

private void Button_Click_1(object sender, RoutedEventArgs e) {
    DXDialog d = new DXDialog("Information", DialogButtons.Ok, true);
    d.Content = new TextBlock() { Text = "This is a WPF DXDialog!" };
    d.SizeToContent = System.Windows.SizeToContent.WidthAndHeight;
    d.Owner = this;
    d.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
    d.ShowDialog();
}
See Also