Condividi tramite


Stretch (MediaElement)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that specifies how a MediaElement should be stretched to fill the destination rectangle.

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

Property Value

Type: Stretch

One of the enumeration values that specifies the stretch behavior for the rendered media.

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

Managed Equivalent

Stretch

Applies To

MediaElement