StretchDirection Enum

Definition

Defines constants that specify the direction that content is scaled.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum StretchDirection
XAML
<object property="enumMemberName"/>
Inheritance
StretchDirection
Attributes

Fields

Name Value Description
UpOnly 0

The content scales upward only when it is smaller than the parent. If the content is larger, no scaling downward is performed.

DownOnly 1

The content scales downward only when it is larger than the parent. If the content is smaller, no scaling upward is performed.

Both 2

The content stretches to fit the parent according to the Stretch property.

Applies to

Produk Versi
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6