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

Zoom in/zoom out in 2013 RadBooks

1 Answer 43 Views
Book
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 03 Dec 2013, 03:39 PM
Hi telerik team,
We would like to zoom in/zoom out on book pages (last version). Is it that possible?
If there is a way, do you have any example or idea to do this? 

Thanks in advance,

Luis Castro M.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 06 Dec 2013, 12:38 PM
Hello Luis,

Essentially the RadBook control is an ItemsControl and you can wrap pretty much anything in its RadBookItems. Therefore we can't implement a common out-of-the-box zoom functionality for the pages. However, you can try to use a ScaleTransform to create a custom zoom-in functionality like so:
this.book.RenderTransform = newScaleTransform()
 {
     ScaleX = scaleFactor,
     ScaleY = scaleFactor,
     CenterX = centerX,
     CenterY = centerY
 };

where the centerX and centerY have to be calculated based on your case an scenario to determine the positioning of the scaled book.

I hope that helps.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Book
Asked by
Luis
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or