TextBox.Text Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the text contents of the text box.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<TextBox Text="string"/>
Property Value
Type: System.StringA string containing the text contents of the text box. The default is an empty string ("").
| Exception | Condition |
|---|---|
| ArgumentNullException | The value is set to Nothing. |
Show: