TextWrapping Property

AccessText.TextWrapping Property


Gets or sets whether the textual content of an AccessText element is wrapped if it overflows the line box.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public TextWrapping TextWrapping { get; set; }

Property Value

Type: System.Windows.TextWrapping

The wrapping behavior to use. The default is NoWrap.

The following example uses the TextWrapping property of AccessText to make a multiple-line label.

<TextBox Name="textBox1" Width="50" Height="20"/>
<Label Width="200" HorizontalAlignment="Left"
       Target="{Binding ElementName=textBox1}">
  <AccessText TextWrapping="WrapWithOverflow">
    _Another long piece of text that requires text wrapping
    goes here.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft