DXDialog Class

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

Namespace: DevExpress.Xpf.Core

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

Declaration

public class DXDialog :
    DXWindow
Public Class DXDialog
    Inherits 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