PdfViewerControl.FileAttachmentOpening Event

Occurs when an attachment is opening in the Attachments panel and allows you to manage the attachment opening behavior.

Namespace: DevExpress.UI.Xaml.Controls

Assembly: DevExpress.UI.Xaml.Controls.v19.2.dll

Declaration

public event EventHandler<PdfFileAttachmentOpeningEventArgs> FileAttachmentOpening
Public Event FileAttachmentOpening As EventHandler(Of PdfFileAttachmentOpeningEventArgs)

Event Data

The FileAttachmentOpening event handler receives an argument of the DevExpress.UI.Xaml.Controls.PdfFileAttachmentOpeningEventArgs type.

Remarks

Set the e.Cancel event's property to true to prevent the attachment from loading. Set the e.Handled property to true to hide the Security Warning message box.

See Also