Silverlight 4 平铺背景
所以我环顾四周,在 Silverlight 4 中找不到 Tilebrush 或类似的功能。互联网上的讨论似乎表明没有任何内置功能。我希望有人能向我展示隐藏的摄像头,或者让我知道这是某种恶心的笑话。难道真的没有 Tilebrush 或类似的功能吗?!
So I've been looking around and I can't find a Tilebrush or similar feature in Silverlight 4. Chatter on the internet seems to indicate that there is nothing built in. I am hoping that someone is going to show me the hidden camera, or let me know that it is some kind of sick joke. Is there really no Tilebrush or similar feature?!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这不是一个病态的笑话。确实没有瓷砖刷。据我所知,新的 WinRT 中也还没有这个功能。
显然,silverlight 内部的设置方式有点困难。
有第三方控件可以让您制作平铺背景。这是其中之一:http://nokola.com/blog/post/2009/12/22/Fast-Tile-Brush-in-Silverlight-And-Easiest-Way-to-Shader-Effects.aspx
It's not a sick joke. There really isn't a tilebrush. From what I've heard it's not yet in the new WinRT either.
Apparently it's a bit difficult to do with the way the silverlight internals are setup.
There are third party controls that let you do a tiled background. Here's one of them: http://nokola.com/blog/post/2009/12/22/Fast-Tile-Brush-in-Silverlight-And-Easiest-Way-to-Shader-Effects.aspx
如果您有这个 silverilght 模板 (JetPack) 安装完毕后,基于此模板创建一个新项目,您将看到内置有一个
TiledBackground
。非常方便。 :)If you have this silverilght template (JetPack) installed, create a new project based on this temlate and you will see there is a
TiledBackground
built-in with it. Pretty handy. :)没有隐藏摄像头... :(
使用像素着色器的解决方案
讨论
No hidden camera... :(
A solution using a pixelshader
Discussion