Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Silverlight - TEXT formatting or HTML tags support
3 replies. Latest Post by ruan on May 11, 2007.
(0)
ruan
Member
2 points
2 Posts
05-10-2007 12:11 PM |
Hi,
I wondered if with Silverlight is possible complex text formating in TextBlock object?
for example "justify text", bullets, etc?
Also can I show HTML formatted text in TextBlock object? CSS styles?
I just read http://msdn2.microsoft.com/en-us/library/bb404774.aspx and not found any info for solve this.
Any help is appreciate
Thank you
Mark Rid...
Contributor
2357 points
273 Posts
05-10-2007 3:47 PM |
No, TextBlock does not support all the rich formatting options that HTML has. We only support font styling (bold, italic, stretch) options at this time (assuming you are using a font that supports styling) and underline. -markProgram ManagerMicrosoftThis post is provided "as-is"
MarauderzMY
607 points
265 Posts
05-11-2007 3:21 AM |
Hmmm... doesn't this just echoes one of the posts I did back on the old forums? Mark, I think the team needs to look into some way to display simple HTML formatted text.... granted onvce you have SOME features in everyone is gonna ask for more.
But anyway this is one place which Silverlight loses out to Flash cause Flash's text elements are able to do simple HTML parsing, personally I'm not greedy I just want them standard B,I,U tags for formatting and if possible an A tag that'd raise events when clicked.
05-11-2007 5:28 AM |
Thank you for your answer.
I have one more question :
can we make in TextBlock object (or any other Silverlight object) text align right/center/"justify text"?