I was trying to disable some items from the page layout in the WPF application and used the below code snippet.
PdfViewerControl control = sender as PdfViewerCont