Expand Minimize

StretchDirection Enumeration

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:
© 2015 Microsoft