Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Provide property to load pdf on PdfViewer Options
Office Athletes Group BV
Posted: Monday, September 3, 2018 5:08:15 AM
Rank: Newbie
Groups: Member

Joined: 3/7/2018
Posts: 5
Hello,

We would like to be able to set the pdf to load from the xaml code. The is possible on the WebControl by setting the WebControl.WebView.Url we were unable to find a property on the PdfViewer control, currently this is only possible by calling the Load() function. It would be nice to have a property so we can set it from xaml.

Best regards,
Bart Vries
eo_support
Posted: Monday, September 3, 2018 5:33:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 22,623
Thank you very much for the feedback. This is not supported yet now because Load can only be called after the PdfViewer is ready. While it's not hard to write a small wrapper class/property to call Load when Url is set, some additional logic must be put in place to delay calling Load when Url is set from xaml because if Load is called before the PdfViewer is ready, it will throw an exception (you can use the PdfViewer's IsReadyChanged event for this purpose).


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.