TextBox control, pictured in Figure 12.16, enables users to type one or more lines of text.
For Windows Store and universal apps,
TextBox has a
Header property that can be set to any
System.Object (although typically text), a
PlaceholderText property that can be set to any watermark string (text that only appears when the
TextBox has no real text content), and a
Paste event that enables you to distinguish pasted text versus typed text. Figure 12.17 demonstrates
PlaceholderText with the following
<TextBox Header="Name" ...