开发者

Strike-through font style for CheckBox

开发者 https://www.devze.com 2023-02-27 01:43 出处:网络
How can I set the font开发者_如何学C 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 di

How can I set the font开发者_如何学C 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消