开发者

Canvas with Zoom Animation

开发者 https://www.devze.com 2023-04-07 03:21 出处:网络
i am developing a small app in WPF and trying to set up an animation of zoom (using ZoomSlider) for a canvas but without good result ,do you have any suggestion how d开发者_运维百科o a nice animation

i am developing a small app in WPF and trying to set up an animation of zoom (using ZoomSlider) for a canvas but without good result ,do you have any suggestion how d开发者_运维百科o a nice animation meantime is zooming the Canvas?

Thanks so much for your attention .

Cheers


Jossef Goldberg posted a VirtualizedCanvas for WPF way back in 2008 on his blog. The code not only contains a virtualized canvas (which you probably don't neeed - it is usually overkill) but also has some gestures such as (animated) zooming and panning.

You can download the code from his blog:

https://learn.microsoft.com/en-us/archive/blogs/jgoldb/virtualized-wpf-canvas

This should give you a great starting point how to do it for your own canvas.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号