O'Reilly logo

Silverlight 1.0 Unleashed by Adam Nathan

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

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

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