Share via


RenderTransform Property

Gets or sets transform information that affects the rendering position of this object.

XAML
<object ...>
  <object.RenderTransform>
    <Transform .../>
  </object.RenderTransform>
</object>
Scripting
value = object.RenderTransform
object.RenderTransform = value

XAML Values

Transform Exactly one object element for an object that derives from Transform. This can be one of the following: RotateTransform, ScaleTransform, SkewTransform, TranslateTransform, MatrixTransform, TransformGroup. By using a TransformGroup here, you can apply multiple transforms by defining child object elements of the TransformGroup. See XAML Values section for TransformGroup.

Property Value

Transform

Describes the specifics of the desired render transform.

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

Remarks

The Transform object can either be a single type of transform (such as RotateTransform) or a TransformGroup. The TransformGroup is not a transform per se, but is instead a container that enables you to specify more than one transform for a RenderTransform as markup children in XAML, or through TransformGroup.Children in script.

The local 0,0 for an object can be offset on a Canvas using Canvas.Left and Canvas.Top, but this does not count as a transform; the object retains its own local 0,0 in this case for transform purposes. For details on this concept, see Object Layout in Silverlight.

The render transform origin can also be offset with RenderTransformOrigin.

Applies To

Canvas, Ellipse, Glyphs, Image, InkPresenter, Line, MediaElement, Path, Polygon, Polyline, Rectangle, TextBlock

See Also

Silverlight Transforms Overview
RenderTransformOrigin