Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make page flip effect in WPF?

All the info i found about page fliping is just source code that i'm having trouble implementing to my code. this tutorial

kinda explains the logic behind page fliping but the code is for windows form and not WPF. i dunno how to approach it because as i understood bitmaps are not used the same in WPF.

anyone has a good tutorial or could give me some pointers? What im trying to do is i have an image that fills entire screen and i want to flip it to to next image ( like a book) that will also take the entire screen. (Not 2 images on a screen)

Help?

To anybody that suggests using C++ or DirectX, I'm not interesting in learning those skills. Only C# code please.

like image 928
eric.itzhak Avatar asked Feb 11 '12 21:02

eric.itzhak


1 Answers

The WPF bag o'tricks has a page flip sample with code.

The github source
https://github.com/thinkpixellab/bot

Specifically, look at the TransitionPresenter sample in the demo project where there are multiple transitions defined, one being page flipping.

like image 68
bic Avatar answered Sep 18 '22 14:09

bic