Chapter 4. Text

IN THIS CHAPTER

Silverlight 1.0 contains two elements for displaying text (and no elements for editing text). The element that is almost always used to display text is called TextBlock, which has a property called Text that can be set to whatever you want to display. (The other element, Glyphs, is for advanced scenarios covered later in this chapter.) For example, the following TextBlock is rendered in Figure 4.1:

<TextBlock Text="Text in a TextBlock"/>

Figure 4.1 A TextBlock containing simple text.

image

You could alternatively express the preceding TextBlock ...

Get Silverlight 1.0 Unleashed 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.