I've got a RadBook control which uses the following DataTemplate for both the right and left page:
This works pretty well to display a document. However, I need to add a zoom button which I'm guessing means changing the ScaleX and ScaleY properties of the ScaleTransform of the RadRichTextPageView. Is there anyway that I can adjust this programatically? I'm having a tough time trying to descend the Visual Tree to find the RadRichTextPageView.
<
DataTemplate
x:Key
=
"PageTemplate"
>
<
Grid
Background
=
"White"
>
<
telerik2:RadRichTextPageView
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
ViewManager
=
"{Binding ElementName=viewManager}"
PageIndex
=
"{Binding Path=PageIndex}"
>
<
telerik2:RadRichTextPageView.RenderTransform
>
<
ScaleTransform
ScaleX
=
"0.55"
ScaleY
=
"0.55"
></
ScaleTransform
>
</
telerik2:RadRichTextPageView.RenderTransform
>
</
telerik2:RadRichTextPageView
>
<
TextBlock
Height
=
"30"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Bottom"
FontSize
=
"9"
Foreground
=
"#5B5B5B"
Margin
=
"0,0,0,5"
Text
=
"{Binding Path=PageIndexDisplay}"
/>
</
Grid
>
</
DataTemplate
>
This works pretty well to display a document. However, I need to add a zoom button which I'm guessing means changing the ScaleX and ScaleY properties of the ScaleTransform of the RadRichTextPageView. Is there anyway that I can adjust this programatically? I'm having a tough time trying to descend the Visual Tree to find the RadRichTextPageView.