|
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?
|
|
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!
|
|
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.
|
|
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
|
|