Share via


Stretch Property (MediaElement)

Gets or sets a Stretch value that describes how a MediaElement fills the destination rectangle.

XAML
<object Stretch="Stretch" .../>
Scripting
value = object.Stretch
object.Stretch = value

Property Value

Stretch

A value of the enumeration that specifies the stretch behavior for the rendered media.

This property is read/write. The default value is Uniform.

Remarks

The following illustration demonstrates the different Stretch values.

Stretch settings

Stretch settings

Applies To

MediaElement

See Also

Media Overview
Supported Media Formats and Protocols