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 ...
Get Essential Silverlight 3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.