Stretch enumeration

Applies to Windows and Windows Phone

Describes how content is resized to fill its allocated space.

Syntax


public enum class Stretch


<object property="enumMemberName"/>

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The Stretch enumeration has these members.

MemberValueDescription
None0

The content preserves its original size.

Fill1

The content is resized to fill the destination dimensions. The aspect ratio is not preserved.

Uniform2

The content is resized to fit in the destination dimensions while it preserves its native aspect ratio.

UniformToFill3

The content is resized to fill the destination dimensions while it preserves its native aspect ratio. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft