TextBox
The 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 Header
and PlaceholderText
with the following TextBlock
:
<TextBox Header="Name" ...
Get XAML Unleashed 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.