Skip to main content

DXDialog Class

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v23.2.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