StretchDirection Enumeration
TOC
Collapse the table of content
Expand the table of content

StretchDirection Enumeration

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

Describes the direction that content is scaled.

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

public enum StretchDirection
<object property="enumMemberName"/>

Member nameDescription
UpOnlyThe content scales upward only when it is smaller than the parent. If the content is larger, no scaling downward is performed.
DownOnlyThe content scales downward only when it is larger than the parent. If the content is smaller, no scaling upward is performed.
BothThe content stretches to fit the parent according to the Stretch property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2016 Microsoft