Silverlight 的内阴影文本
在过去的几个小时里,我一直在努力寻找一种为文本创建内部阴影的方法。本质上我想在 Silverlight 中创建类似的效果: 带有 CSS 的内部文本阴影
我能够在这个网站中找到一些线索(最接近的)似乎是这个问题):Silverlight White text with Black Border? 但没有什么真正接近的。
我发现的唯一实例只是向矩形和形状添加内部阴影。但据我所知,同样的方法不适用于文本。
有没有人有办法通过xaml或代码来实现效果?我将非常感激。
I've been trying for the last several hours to find a way to create inner shadows for text. Essentially I want to create effects similar to this in Silverlight:
Inner text shadow with CSS
I was able to find some leads in this website (the closest seeming to be this question): Silverlight White text with Black Border?
But nothing really came very close.
The only instances I have found were only to add inner shadows to rectangles and shapes. But the same method would not work on text as far as I am aware.
Does anyone have a way of achieving the effect either through xaml or code? I would much appreciate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 此内容以获取轮廓(路径) Silverlight 中的文本
然后,如果您有路径,则可以使用 此生成内阴影
See this to get the outline (Path) of the text in Silverlight
Then, if you have the path, you can use this to generate a inner shadow