FontStretch Property

TextElement.FontStretch Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the glyph width of the font in a family to select.

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

public FontStretch FontStretch { get; set; }
<textElement FontStretch="fontStretchesValue"/>

XAML Values


A FontStretches property name, such as Condensed, Normal, or Expanded.

Property Value

Type: System.Windows.FontStretch
One of the FontStretches property values, specifying the desired font stretch. The default is FontStretches.Normal.

Dependency property identifier field: FontStretchProperty

This property can select only from fonts that exist in a font family. It does not cause programmatic stretching of glyphs. A font stretch describes the degree to which a font form is stretched from its normal aspect ratio, which is the original width-to-height ratio specified for the glyphs in the font.

For the set of preconfigured font stretches, see FontStretches.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2017 Microsoft