ContentPresenter.TextWrapping Property


Gets or sets how the element wraps text.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.ContentPresenter.TextWrapping.

 property TextWrapping TextWrapping { TextWrapping get(); void set(TextWrapping value); };
TextWrapping TextWrapping();

void TextWrapping(TextWrapping value);
public TextWrapping TextWrapping { get; set; }
var textWrapping = contentPresenter.textWrapping;
contentPresenter.textWrapping = textWrapping;
Public Property TextWrapping As TextWrapping

Property Value


A value that indicates how the element wraps text. The default is NoWrap.

Applies to