Text Controls

Silverlight includes a standard TextBox control and several more specialized controls that derive from TextBox, including a PasswordBox (for entering text that should be concealed), an AutoCompleteBox (which shows a drop-down list of suggestions as the user types), and a RichTextBox (which allows richly formatted text, links, and pictures). You'll learn about all these variants in the following sections.

The TextBox

The basic TextBox stores a string, which is provided by the Text property. You can change the alignment of that text using the TextAlignment property, and you can use all the properties listed in Table 5-2 to control the font of the text inside the text box. The TextBox also supports many of the features of its counterpart ...

Get Pro Silverlight 5 in VB 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.