Skip to main content

DocumentClosingEventArgs.SaveDialogResult Property

Gets or sets the return value of the Save dialog.

Namespace: DevExpress.Xpf.PdfViewer

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

NuGet Package: DevExpress.Wpf.PdfViewer

Declaration

public MessageBoxResult? SaveDialogResult { get; set; }

Property Value

Type Description
Nullable<MessageBoxResult>

A MessageBoxResult enumeration that specifies the user choice made in the Save dialog.

Remarks

The PDF Viewer shows the Save dialog to save changes made by a user to a document before the document is closed.

Use the SaveDialogResult property with the e.Handled parameter set to true, to change the return value of the Save dialog box.

The SaveDialogResult property can be set to one of the following values:

  • MessageBoxResult.Yes - the PDF Viewer saves changes to a document before closing it (the PDF Viewer shows the Save As dialog if changes were made);
  • MessageBoxResult.No, MessageBoxResult.None or MessageBoxResult.OK - the PDF Viewer does not save changes to a document before closing it.
  • MessageBoxResult.Cancel - the PDF Viewer cancels document closing after changes were made in a document.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SaveDialogResult 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