O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

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

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

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