Silverlight 2 的画布实用程序

发布于 2024-07-15 03:16:40 字数 88 浏览 2 评论 0原文

为了节省我编写代码的时间,有谁知道使用 Silverlight 画布的实用程序代码的来源吗? 我正在考虑确定内容边界框、剪切边界内的内容、轻松访问变换等的代码。

To save me writing the code, does anyone know of a source for utility code for working with Silverlight canvases? I am thinking of code that determines bounding boxes for content, content within clipped bounds, easy access to Transforms etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

能否归途做我良人 2024-07-22 03:16:40

从缺乏回应来看,这要么不是其他人必须经常做的事情,要么确实没有任何符合要求的东西。 我咬紧牙关,开始为 Canvas 类编写自己的一组扩展方法,从 GetContentBounds 开始迭代画布的子级并返回内容边界矩形的边界矩形。

Judging by the lack of response this is either not something other people have to do that often, or there isn't really anything available that fits the bill. I have bitten the bullet and have started writing my own set of extension methods for the Canvas class starting with GetContentBounds to iterate a canvas' children and return a bounding Rect of the contents' bounding rectangle.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文