-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.TextBox.TextWrapping |
winrt property |
Gets or sets how line breaking occurs if a line of text extends beyond the available width of the text box.
<TextBlock TextWrapping="Wrap"/>
-or-
<TextBlock TextWrapping="NoWrap"/>
One of the TextWrapping values. The default is NoWrap.
TextBox and RichEditBox don't support the WrapWholeWords value for their TextWrapping properties. If you try to use WrapWholeWords as a value for TextBox.TextWrapping or RichEditBox.TextWrapping, an exception is thrown.
The following example shows how you can use the TextWrapping property in XAML.
[!code-xamlScrollBarXAML]