Enable and Disable Notification bar in WPF Pdf Viewer

9 Jul 20261 minute to read

Notification bar is a part of the PDF Viewer that displays a notification when an unexpected error occurs in the PDF Viewer control. You can suppress the display of the Notification bar by setting the EnableNotificationBar property to false (default value is true). The following code example illustrates the same.

using Syncfusion.Windows.PdfViewer;

//Initialize PDF Viewer.
PdfViewerControl pdfViewer1 = new PdfViewerControl();
//Load the PDF.
pdfViewer1.Load("Sample.pdf");

// Hiding the notification bar of the PDF Viewer
pdfViewer1.EnableNotificationBar = false;
Imports Syncfusion.Windows.PdfViewer

'Initialize PDF Viewer.
Private pdfViewer1 As New PdfViewerControl()
'Load the PDF.
pdfViewer1.Load("Sample.pdf")

' Hiding the notification bar of the PDF Viewer
pdfViewer1.EnableNotificationBar = False