Share via


How to: Use Transforms on a MediaElement

This example shows how to use a RotateTransform on a MediaElement.

Example

In the following markup, the MediaElement is rotated using a RotateTransform.

<MediaElement Source="media/numbers-aud.wmv">
  <MediaElement.LayoutTransform>
    <TransformGroup>
      <RotateTransform Angle="305" />
    </TransformGroup>
  </MediaElement.LayoutTransform>
</MediaElement>
<MediaElement Source="media/numbers-aud.wmv">
  <MediaElement.LayoutTransform>
    <TransformGroup>
      <RotateTransform Angle="305" />
    </TransformGroup>
  </MediaElement.LayoutTransform>
</MediaElement>