// Create the interop host control. System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost(); host.Child = pdfViewer1; // Add the interop host control to the Grid this.GridPdf.Children.Add(host); //in Windows Closed Event pdfViewer1.PdfFilePath = ""; pdfViewer1.Dispose(); this.GridPdf.Children.Remove(host);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)