View and print document

I am working on a wpf project and I want it to be able to open PDF files, view them and print them. I got a code attached below is giving me error, further if there is anyone who has worked with this kind of project before, kindly share how you did it. I can share more on the project on what I intend to achieve in my project.
DocViewer.png (107.6 KB)

@Nyendwa No viewer is part of Aspose APIs however you can convert documents to images and then use any image viewer to load those images.
We have built web viewers for various file formats at aspose.app .
You can use GroupDocs Viewer for .NET and Java as well to add viewer functionality in your own applications.

We can also help you get started with free consulting about how to use Aspose APIs .

With free consulting, we help you with small projects so you can get started quickly and build your apps. Please note that, we also offer paid consulting, where you can pay to get your application built for you.

As a work around, and since you trying to render PDF documents using WPF I recommend you to utilize WPF C# PDF Viewer using WebBrowser control. Additionally if you want to make changes on that PDF I recommend the use of Aspose.Pdf API instead.