Changing the value of the DocumentSource property at runtime causes the RadPdfViewer to display a busy indicator and not update the displayed PDF file with the new one.
To work this around, derive from the RadPdfViewer and create a new dependency property for the property of the type of PdfDocumentSource (for example, from your view model). In its callback method, call the SetDocumentSource method of the derived RadPdfViewer by passing the new value:
public class MyPdfViewer : RadPdfViewer
{
public PdfDocumentSource PdfDocumentSource
{
get { return (PdfDocumentSource)GetValue(PdfDocumentSourceProperty); }
set { SetValue(PdfDocumentSourceProperty, value); }
}
public static readonly DependencyProperty PdfDocumentSourceProperty =
DependencyProperty.Register("PdfDocumentSource", typeof(PdfDocumentSource), typeof(MyPdfViewer), new PropertyMetadata(new PropertyChangedCallback(OnDocumentSourceChanged)));
private static void OnDocumentSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
MyPdfViewer viewer = (MyPdfViewer)d;
viewer.SetDocumentSource((PdfDocumentSource)e.NewValue);
}
}
<local:MyPdfViewer x:Name="pdfViewer" PdfDocumentSource="{Binding MyViewModelPropertyOfTypePdfDocumentSource}" />
The CurrentPageTextBox in the toolbar has stopped displaying in the latest version.
Workaround:
<telerik:CurrentPageTextBox x:Name="PART_CurrentPageNumberTextBox"
HorizontalContentAlignment="Center"
Margin="2" Text="{Binding FixedDocumentViewer.CurrentPageNumber, Mode=TwoWay}"
VerticalContentAlignment="Center" Width="45"
telerik:StyleManager.Theme="Office_Black"/>
The glyphs are rendered with additional unexpected lines when a specific custom CFF font is used to show them.
The thinnest line thickness is thinner than in Adobe and it is not scaled according to the scale factor.
Observed: