Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TextBlock.TextTrimming 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 trimming behavior to employ when content overflows the content area.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public TextTrimming TextTrimming { get; set; }
<TextBlock TextTrimming="None"/>
-or-
<TextBlock TextTrimming="WordEllipsis"/>

Property Value

Type: System.Windows.TextTrimming
One of the TextTrimming values that specifies the text trimming behavior to employ. The default is None.

The TextTrimming property has no effect unless the TextWrapping property is set to NoWrap.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show: