I'm wanting to change how far the page has to be dragged for a page turn to occur. Is this possible? In my project, I only show the right page of the book (the left page is clipped off). It would be nice if the user could drag the page corner to, say, half way across the right page, and the page turn would still happen.
Thanks!
5 Answers, 1 is accepted
Unfortunately the RadBook doesn't support such scenario. However I added it as a feature request to our PITS under the name Book: Allow the user to determine how far the page has to be dragged for a page turn to occur. You can vote for it from tomorrow the latest and if the feature gather enough popularity we will definately consider implementing it. I also updated your Telerik points accordingly.
Any additional comments on the matter are highly appreciated.
Kind regards,
Tina Stancheva
the Telerik team
Would be nice to have a page fold, that is shown if the user could turn around the page.
For developers a simple property ShowPageFold true or false or never?
Please have a look at the attached project as it demonstrates similar functionality. Let me know if this helps.
All the best,
Kiril Stanoev
the Telerik team
I had ever made a page turing flipbook via turning page software. The page turns when i drag the page corner, or click on next page button. If I drag the page, it turns according with my actions. So maybe you can have a try.
You have access to several events when the user grabs the fold edge and also how far the fold goes. If I understand you correctly, you want the page to turn when the fold is pulled all the way over. If this is not what you are asking, please give me a little more detail and I can write you an example app demonstrating the control's capabilities.
Here is a list of just some of the events you can handle with RadBook:
- FoldActivated - raised when the user hovers the fold with the mouse.
- FoldDeactivated - raised when the fold is not active - e.g. the user is not over it. (will also happen after page is turned)
- PageChanged - raised when the page set is changed.
- PageFlipStarted - raised when user starts to flip a page.
- PreviewPageFlipStarted - raised when user starts to flip a page. Allows the developer to cancel the page flip.
- PageFlipEnded - raised when the flip is finished. This happen when the page is changed, or user canceled the flip.
Alongside the events, there are a lot of properties you can play with to get the feel you're looking for. Here are some that I use in the demo project I created for you:
Adjust the FoldSize (the distance the fold will pull away from the edge of the book )
Toggle the IsKeyboardNavigationEnabled (allows the left/right keys to turn a page)
I've attached a demo project (it contains comments inside the code explaining what i did to get these results). You can turn the pages in one of three ways;
- Drag a folded corner across the page (the page turn completes when you let go of the fold).
- Hover over a folded corner and press left mouse button
- Use the left or right arrow keys on the keyboard
Along with the project, I've attached 2 screenshot images. They show all the events possible with the RadBook control and also the RadBookItem (individual pages raise events as well). Because I cannot attach the project here, this link will bring you to my public dropbox folder where you can download it. http://dl.dropbox.com/u/47517502/RadBookExampleProject.zip
Good luck, if you have questions I will be monitoring this thread.
Lancelot