O'Reilly logo

Essential Silverlight 3 by Ashraf Michail

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required