Skip to main content

Microsoft Silverlight

Silverlight - TEXT formatting or HTML tags supportRSS Feed

(0)

ruan
ruan

Member

Member

2 points

2 Posts

Silverlight - TEXT formatting or HTML tags support

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 Rideout
Mark Rid...

Contributor

Contributor

2357 points

273 Posts

MicrosoftModerator

Re: Silverlight - TEXT formatting or HTML tags support

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.

-mark
Program Manager
Microsoft
This post is provided "as-is"


MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Silverlight - TEXT formatting or HTML tags support

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.

ruan
ruan

Member

Member

2 points

2 Posts

Re: Silverlight - TEXT formatting or HTML tags support

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"?

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities