Windows.UI.Xaml.Controls.TextBox.TextWrapping

June 22, 2022 · View on GitHub

-description

Gets or sets how line breaking occurs if a line of text extends beyond the available width of the text box.

-xaml-syntax

<TextBlock TextWrapping="Wrap"/>
-or-
<TextBlock TextWrapping="NoWrap"/>

-property-value

One of the TextWrapping values. The default is NoWrap.

-remarks

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.

-examples

The following example shows how you can use the TextWrapping property in XAML.

[!code-xamlScrollBarXAML]

-see-also