Silverlight 2 的画布实用程序
为了节省我编写代码的时间,有谁知道使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从缺乏回应来看,这要么不是其他人必须经常做的事情,要么确实没有任何符合要求的东西。 我咬紧牙关,开始为 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.