This is a migrated thread and some comments may be shown as answers.

RadBook Integration

1 Answer 52 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ramon Alejandro
Top achievements
Rank 2
Ramon Alejandro asked on 11 Jul 2014, 03:14 AM
I found this issue on the RichTextBox integration with RadBook demo:

When I load a .docx document it does not adjusts to the book size and shows only a portion of the text. It seems that the meassure functionality in not working. This error also causes that some pages are not showed (missing) between left and right page. I found this issue on the official demo, this is not a test project. I'm using Telerik WPF 2014.1.0331.45, I know that this is not the latest version, I just want to report this issue and maybe learn how to solve it.

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 15 Jul 2014, 02:47 PM
Hello Ramon Alejandro,

The presenter which is used to show documents when integrating RadRichTextBox with RadBook does not support auto scaling. If you want your documents to fit the available area you'd need to calculate the desired scale and apply a transform to the RadRichTextPageView.
<telerik:RadRichTextPageView HorizontalAlignment="Center"
                             VerticalAlignment="Center"
                             ViewManager="{Binding Source={StaticResource viewManager}}"
                             PageIndex="{Binding Path=PageIndex}">
    <telerik:RadRichTextPageView.RenderTransform>
        <ScaleTransform ScaleX="0.7" ScaleY="0.7" />
    </telerik:RadRichTextPageView.RenderTransform>
</telerik:RadRichTextPageView>

I hope this helps.

Regards,
Petya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
RichTextBox
Asked by
Ramon Alejandro
Top achievements
Rank 2
Answers by
Petya
Telerik team
Share this question
or