Share via


Using RotateLayout

Using RotateLayout, you can rotate items within a layout by specifying a rotation angle. You can specify one of the following values: 0, 90, 180, or 270 degrees.

The following example shows a 90-degree rotation.

An example of RotateLayout.

<!-- No rotation. -->
<Graphic Content="image://me:ImageLibrary" />

<Panel>
  <Layout>
    <RotateLayout AngleDegrees="90" />
  </Layout>
  <Children>
    <Graphic Content="image://me:ImageLibrary" >
    </Graphic>
  </Children>
</Panel>

Sample Explorer

  • Layout > Rotate Layout

See Also