Zoom in/zoom out in 2013 RadBooks

2 posts, 0 answers
  1. Luis
    Luis avatar
    1 posts
    Member since:
    Jul 2012

    Posted 03 Dec 2013 Link to this post

    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.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 06 Dec 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top