开发者

Prevent ContentPresentor while scaled to resize all objects in it's content

开发者 https://www.devze.com 2023-02-23 02:36 出处:网络
Hey guys, I have a ContentPresenter which contains Image inside of开发者_如何学运维 it and a few Ellipses (points).

Hey guys, I have a ContentPresenter which contains Image inside of开发者_如何学运维 it and a few Ellipses (points). There's a Zoom behavior on the ContentPresenter and it scales all the objects inside of it. Does anyone have an idea how to stop the scaling of the Ellipses?

Thanks


I don't thin it would be possible to do it automatically, you probably need to find some strategy to "unscale" the ellipses. I did something similar, but about line thickness, on this sample: http://www.felicepollano.com/2011/03/21/ACADFriendlyWPFZoomBehavior.aspx and I think you can grab the idea.

0

精彩评论

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