How to make page turn effect in WPF?

All the information I found about page turning is just the source code that I cannot implement in my code. this tutorial

kinda explains the page display logic, but the code is for a Windows form, not WPF. I don’t know how to approach it, because since I realized that bitmaps are not used equally in WPF.

anyone has a good tutorial or can give me some pointers? What I'm trying to do is an image that fills the entire screen, and I want to flip it to the next image (for example, a book), which will also take up the entire screen. (Not 2 images on screen)

reference

For those who suggest using C ++ or DirectX, I am not interested in learning these skills. Only C # code.

+4
source share
1 answer

The WPF bag o'tricks package has a sample translation of the code page.

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

In particular, look at the TransitionPresenter example in a demo project where several transitions are defined, one of which is a page turn.

+5
source

Source: https://habr.com/ru/post/1395972/


All Articles