Welcome Guest Search | Active Topics | Sign In | Register

WPF PDFViewer Example Options
Bryan
Posted: Monday, April 26, 2021 2:09:13 PM
Rank: Newbie
Groups: Member

Joined: 6/25/2019
Posts: 3
I'm just trying to load a PDF into the PDFViewer to see if it displays correctly using the latest version.

I can't even seem to add the PDFViewer control to the XAML, it just tells me it is not a UIElement.

Is there a very basic XAML snippet showing how you should add a PDFViewer to a new window?
eo_support
Posted: Monday, April 26, 2021 2:35:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

Please use Visual Studio to open the sample solution, then go to TabbedBrowser sample project and look for PdfViewer.xaml. You can find a working sample there.

Thanks!
Bryan
Posted: Monday, April 26, 2021 2:56:29 PM
Rank: Newbie
Groups: Member

Joined: 6/25/2019
Posts: 3
I tried using that as an example, but I still keep getting

Error XLS0503 A value of type 'PdfViewer' cannot be added to a collection or dictionary of type 'UIElementCollection'.

I have EO referenced on my window oblect

xmlns:eo="http://schemas.essentialobjects.com/wpf/"

when I type in <eo: and look through the list of available controls the pdfViewer is not in the list. I can see it in the toolbox and drag it from the toolbox onto the form, but I still get the error listed above.

eo_support
Posted: Tuesday, April 27, 2021 11:36:46 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Are you using Visual Studio? Did you reference all the DLLs in your project? See here for all the DLLs you need to refernece:

https://www.essentialobjects.com/doc/common/refdll.aspx


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.