CheckBox 的删除线字体样式

发布于 2024-11-02 00:44:09 字数 175 浏览 4 评论 0原文

如何将 Silverlight CheckBox 的字体样式设置为删除线(示例文本)?我使用 Expression Blend 4,希望它能像将文本设为粗体斜体一样简单。但到目前为止我还没有找到方法。也欢迎使用 C# 代码执行此操作的替代解决方案。

How can I set the font style of a Silverlight CheckBox to strike-through (sample text)? I use Expression Blend 4 and hoped it might be as easy as making the text bold or italic. But I didn't find a way so far. Alternative solutions for doing it in C# code are also welcome.

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

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

发布评论

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

评论(1

难理解 2024-11-09 00:44:09

手机上唯一支持的 TextDecorationUnderline(请参阅 http://msdn.microsoft.com/en-us/library/system.windows.textdecorations(v=vs.95).aspx)。

如果您想创建删除线效果,您需要自己在文本中绘制一条线/路径。

The only TextDecoration supported on the phone is Underline (see http://msdn.microsoft.com/en-us/library/system.windows.textdecorations(v=vs.95).aspx).

If you want to create a strike through effect you will need to draw a line/path through the text yourself.

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