4. Text
THE SIMPLEST METHOD to display text in Silverlight is the TextBlock element. The TextBlock element has properties for setting the text, character formatting, color, wrapping, line breaks, and alignment. You can use the TextBlock element to overlay text on top of vector graphics, images, live video, or any other content. Silverlight also supports text editing with the TextBox element. For the purposes of text display, information on the TextBlock element also applies to the TextBox element.
The TextBlock and TextBox elements only support simple typography features. For example, it is not possible for a TextBlock element to display a properly formatted mathematical formula. Consequently, Silverlight provides a second lower level Glyphs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access