Hello,
I am not able to bind the PDFViewer Command for setting the Scale Factor with a regular ComboBox like so:
<Button
Command="{Binding ZoomInCommand}">
<Image Source="/Telerik.Windows.Controls.FixedDocumentViewers;component/Images/zoom-in.png" Stretch="None" />
</Button>
<Button
Command="{Binding ZoomOutCommand}">
<Image Source="/Telerik.Windows.Controls.FixedDocumentViewers;component/Images/zoom-out.png"
Stretch="None" />
</Button>
<ComboBox
Margin="2"
Height="Auto"
SelectedIndex="4"
Text="{ Binding Path=FixedDocumentViewer.ScaleFactor,
Converter={StaticResource doubleToStringPercentConverter},
Mode=TwoWay}">
<ComboBoxItem Content="25%" />
<ComboBoxItem Content="50%" />
<ComboBoxItem Content="100%" />
<ComboBoxItem Content="150%" />
<ComboBoxItem Content="200%" />
<ComboBoxItem Content="500%" />
</ComboBox>
When I click on one of the Buttons the document change it size but the new scale factor is not shown in the ComboBox - except 100.
I am using the PDF Viewer Control inside a WPF User Control - if I am using the Control directly inside the WPF window it works like int the WPF demo.
May be I am missing a reference in the main project?
Regards,
Peter
I am not able to bind the PDFViewer Command for setting the Scale Factor with a regular ComboBox like so:
<Button
Command="{Binding ZoomInCommand}">
<Image Source="/Telerik.Windows.Controls.FixedDocumentViewers;component/Images/zoom-in.png" Stretch="None" />
</Button>
<Button
Command="{Binding ZoomOutCommand}">
<Image Source="/Telerik.Windows.Controls.FixedDocumentViewers;component/Images/zoom-out.png"
Stretch="None" />
</Button>
<ComboBox
Margin="2"
Height="Auto"
SelectedIndex="4"
Text="{ Binding Path=FixedDocumentViewer.ScaleFactor,
Converter={StaticResource doubleToStringPercentConverter},
Mode=TwoWay}">
<ComboBoxItem Content="25%" />
<ComboBoxItem Content="50%" />
<ComboBoxItem Content="100%" />
<ComboBoxItem Content="150%" />
<ComboBoxItem Content="200%" />
<ComboBoxItem Content="500%" />
</ComboBox>
When I click on one of the Buttons the document change it size but the new scale factor is not shown in the ComboBox - except 100.
I am using the PDF Viewer Control inside a WPF User Control - if I am using the Control directly inside the WPF window it works like int the WPF demo.
May be I am missing a reference in the main project?
Regards,
Peter