开发者

WPF Animation on scrollviewer children clipped by scrollviewer

开发者 https://www.devze.com 2022-12-26 12:04 出处:网络
Hey folks, I\'m hoping I have a fairly simple problem that can be fixed easily as it seems like I\'m just missing something basic from the WPF world. I have a scrollviewer wrapping a stackpanel which

Hey folks, I'm hoping I have a fairly simple problem that can be fixed easily as it seems like I'm just missing something basic from the WPF world. I have a scrollviewer wrapping a stackpanel which contains several images, these images have animations to increasing in size when the mouse passes over them. 开发者_StackOverflow中文版All works fine without the scrollviewer, now I've added the scrollviewer, the animation works but only inside the scrollviewer; the increasing size isn't being allowed to overlap the scrollviewer.

Is there a way to fix this? Thanks, Becky


It's the way ScrollViewer works. Basically it always clips to bounds even if you set ClipToBounds="False" on it.

To make it work and continue using ScrollViewer you'll have to animate images on top of it, not inside.

0

精彩评论

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