Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.81 KB

mediaplayerpresenter_stretch.md

File metadata and controls

38 lines (27 loc) · 1.81 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.MediaPlayerPresenter.Stretch
winrt property

Windows.UI.Xaml.Controls.MediaPlayerPresenter.Stretch

-description

Gets or sets a value that describes how an MediaPlayerPresenter should be stretched to fill the destination rectangle.

-xaml-syntax

<MediaPlayerPresenter Stretch="stretchMemberName" />

-xaml-values

stretchMemberName
stretchMemberNameA named constant of the Stretch enumeration, such as Fill.
## -property-value A value of the [Stretch](../windows.ui.xaml.media/stretch.md) enumeration that specifies how the source visual media is rendered. The default value is **Uniform**.

-remarks

Here's what the Stretch values represent for MediaPlayerPresenter content:

  • None: The original size of the content is preserved.
  • Fill: The content is resized to fill the destination dimensions. The aspect ratio of the video is not preserved.
  • UniformToFill: Uniformly stretches the MediaPlayerPresenter to fill the available layout space while preserving the aspect ratio of the content. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit the destination dimensions.
  • Uniform: Uniformly stretches the MediaPlayerPresenter to fill the layout space while preserve the aspect ratio of the image. This will ensure that the entire image is displayed, undistorted and not cropped. This may result in letterboxing or pillarboxing on the top or sides of the image, depending on the aspect ratio of the content.

-examples

-see-also