Rank: Newbie Groups: Member
Joined: 3/7/2018 Posts: 6
|
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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
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).
|