Getting started with XFINIUM.PDF Viewer in WPF applications

This tutorial will show how to get started with XFINIUM.PDF Viewer in WPF applications.

1. Add XFINIUM.PDF Viewer to Visual Studio toolbox.

2. Open your window xaml in Visual Studio Designer.

Getting started with XFINIUM.PDF viewer in WPF applications

3. Drag a PdfCoreView control from the toolbox onto the form and name the control ‘documentView‘. References to xfinium.pdf.wpf.dll, xfinium.pdf.render.wpf.dll and xfinium.pdf.view.wpf.dll will be added automatically to your project.

Getting started with XFINIUM.PDF viewer in WPF applications

4. Embed the documentView control in a ScrollViewer.

Getting started with XFINIUM.PDF viewer in WPF applications

5. In your window’s Loaded event create a PdfVisualDocument object, set the documentView.Document property with the PdfVisualDocument object and load a file in the document.

Getting started with XFINIUM.PDF viewer in WPF applications

C#

VB

6. Run the application.

Getting started with XFINIUM.PDF viewer in WPF applications

Leave a Reply