Hi,
I am trying integrating a rad PDFViewer which show a pdf generated in a Stream to print it, at first, i would like to show the pdf document with a scalefactor of 0.5 and give the user the possibility to increase or decrease the zoom. In way to perform that, i added a RadSlider and bound the scalefactor of the pdf viewer with the value of the rad slider like show the code below (The problem i encounter is that the scalefactor is initially set to 1, however the pdf viewer width allow to show the 0.5 scale value) :
<telerik:RadPdfViewer x:Name="pdfViewer" Grid.Row="1" Width="450" DocumentSource="{Binding Document, Mode=TwoWay}" ScaleFactor="{Binding ElementName=ZoomSlider, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ScaleMode="FitToWidth" ScrollViewer.VerticalScrollBarVisibility="Auto" />Then the code of the RadSlider:
<telerik:RadSlider x:Name="ZoomSlider" Grid.Column="0" Width="300" HorizontalAlignment="Center" HandlesVisibility="Visible" Maximum="1.5" Value="0.5" Minimum="0" TickFrequency="0.25" TickPlacement="TopLeft"> <telerik:RadSlider.TickTemplate> <DataTemplate> <Grid> <TextBlock Text="{Binding}" /> </Grid> </DataTemplate> </telerik:RadSlider.TickTemplate></telerik:RadSlider>