October 2007
Intermediate to advanced
272 pages
6h 55m
English
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.
![]()
You could alternatively express the preceding TextBlock ...
Read now
Unlock full access