Export (0) Print
Expand All

Stretch Property (VideoBrush)

Gets or sets a value that specifies how the video of this brush stretches to fill the painted area.

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

Property Value

Stretch

A value that specifies how this brush's video content stretches to fill the painted area.

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

Remarks

The Stretch property accepts the following values, which the Stretch enumeration defines:

  • None: The video does not stretch to fill the output dimensions.

  • Uniform: The video is scaled to fit the output dimensions. However, the aspect ratio of the content is preserved.

  • UniformToFill: The video is scaled so that it completely fills the output area but preserves its original aspect ratio.

  • Fill: The video is scaled to fit the output dimensions. Because the content's height and width are scaled independently, the original aspect ratio of the video might not be preserved. That is, the video might be distorted in order to completely fill the output area.

The following image illustrates the different Stretch settings.

Different Stretch settings

Applies To

VideoBrush

See Also

VideoBrush Overview

Community Additions

Show:
© 2015 Microsoft