Sometimes, it is impractical to use the selection controls described in the previous section. For example, the user cannot reasonably enter biographical data or comments using a Combo Box or RadioButton. In those cases, you can provide a text control where the user can type information.
The following table briefly describes the WPF controls that allow the user to enter text.
CONTROL | PURPOSE |
PasswordBox | Similar to a TextBox but displays a mask character instead of the characters that the user types. (See example program UsePasswordBox, available for download on the book’s website.) |
RichTextBox | Similar to a TextBox but contains text in the form of a document object. See the section “Managing Documents” later in this chapter for more information on documents. |
TextBox | Allows the user to enter simple text. Optionally can allow carriage returns and tabs, and can wrap text. |