Hello,
I have an issue with reading PDF files. If I change BuildAction property via VisualStudio from none to resource it works but if I keep none it doesn't work. The PDF files are dynamically added to the folder by the user. Is there a way to solve this problem, I mean a way to read the PDF files without changing the BuildAction property ?
Thanks in advance.
<
telerik:RadPdfViewer
Grid.Row
=
"1"
x:Name
=
"pdfViewer"
DataContext
=
"{Binding ElementName=pdfViewer, Path=CommandDescriptors}"
>
this
.pdfViewer.DocumentSource =
new
PdfDocumentSource(
new
Uri(
"MyProject;component/Contenu/PDF/Facture.pdf"
, UriKind.Relative));