Share via


Stretch Enum

Definition

Specifies how content is scaled to fill its allocated space.

public enum class Stretch
public enum Stretch
type Stretch = 
Public Enum Stretch
Inheritance
Stretch

Fields

Name Value Description
None 0

Content preserves its original size.

Fill 1

Content is resized to fill the destination, aspect ratio is not preserved.

Uniform 2

Content is resized to fit the destination while preserving aspect ratio.

UniformToFill 3

Content is resized to fill the destination while preserving aspect ratio, clipping if necessary.

Applies to