Hi,
I have this code, thats not working like this.
Because of the DataContext, the DocumentSource wont work, because it needs obviously a different DataContext.
But I need this DataContext for the ContextMenu to work.
Is there a way I can have both? A working context menu and also bind the DocumentSource?
Greetings
Benedikt
<telerik:RadPdfViewerToolBar
Grid.Row="1"
x:Name="pdfViewerToolBarZeichnungen"
Margin="0 5 0 0"
RadPdfViewer="{Binding ElementName=pdfViewerZeichnungen}"
HasSaveButton="{DynamicResource SonderRechtPDFsSpeichernErlaubt}"
HasSignatureButton="False"
HasPercentComboBox="False"
HasPrintButton="{DynamicResource SonderRechtPDFsSpeichernErlaubt}"
/>
<telerik:RadPdfViewer
Grid.Row="2"
x:Name="pdfViewerZeichnungen"
DocumentSource="{Binding SelDatei.FilePath, Converter={StaticResource PdfDocumentSourceValueConverter}}"
DataContext="{Binding CommandDescriptors, ElementName=pdfViewerZeichnungen}"
telerik:RadPdfViewerAttachedComponents.RegisterFindDialog="True"
telerik:RadPdfViewerAttachedComponents.RegisterContextMenu="True"
Mode="TextSelection"
>