Skip to main content
All docs
V26.1
  • ThemedWindowDialogButton.DialogResult Property

    Gets or sets the dialog’s result when the UICommand is not specified.

    Namespace: DevExpress.Xpf.Core

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

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    public MessageBoxResult DialogResult { get; set; }

    Property Value

    Type Description
    MessageBoxResult

    The dialog result value.

    Remarks

    The following code sample shows how to add the OK and Cancel dialog buttons to the ThemedWindow in code:

    ThemedWindow themedWindow = new ThemedWindow() { Title = "Your update is ready" };
    themedWindow.Content = new TextBlock() { Text = "Do you want to update now?" };
    
    ThemedWindowDialogButton CancelDialogButton = new ThemedWindowDialogButton() { Content = "Don't Remind Me", IsCancel = true, DialogResult = MessageBoxResult.Cancel };
    themedWindow.DialogButtons.Add(CancelDialogButton);
    
    ThemedWindowDialogButton OKDialogButton = new ThemedWindowDialogButton() { Content = "Install Update", IsDefault = true, DialogResult = MessageBoxResult.OK };
    themedWindow.DialogButtons.Add(OKDialogButton);
    
    ThemedWindowDialogButton DismissDialogButton = new ThemedWindowDialogButton() { Content = "Remind Me Tomorrow", DialogResult = MessageBoxResult.No, Placement = Dock.Left  };
    themedWindow.DialogButtons.Add(DismissDialogButton);
    
    themedWindow.ShowDialog();
    

    The following code snippets (auto-collected from DevExpress Examples) contain references to the DialogResult property.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also