Skip to main content
Home Forums Silverlight Programming Programming with .NET - General HTML type styles in WPF/Silverlight
2 replies. Latest Post by kashifimran on May 12, 2008.
(0)
kashifimran
Member
74 points
46 Posts
05-12-2008 2:01 AM |
In html I we can put differenet tags around text to get some style for example <b>Bold Text<b> and <i>Italic Text</i>,
If I need to achieve something similiar in silverlight do I have to use two different text blocks or can we do it using one text block or something?
Thanks,
swildermuth
Star
8320 points
1,546 Posts
05-12-2008 2:36 AM |
You can use <Run>Foo</Run> and place hte text stying in TextBlocks. For example:
<TextBlock>Hello <Run FontWeight="Bold">There</Run>!!!</TextBlock>
05-12-2008 11:34 AM |
Thanks Shawn.