RenderTransform
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets transform information that affects the rendering position of an object.
<object ...>
<object.RenderTransform>
singleTransform
</object.RenderTransform>
</object>
value = object.RenderTransform
object.RenderTransform = value
XAML Values
Value |
Description |
---|---|
singleTransform |
Exactly one object element for an object that derives from Transform. This can be one of the following: RotateTransform, ScaleTransform, SkewTransform, TranslateTransform, MatrixTransform, or TransformGroup. If you use a TransformGroup, you can apply multiple transforms by defining child object elements of the TransformGroup. For more information, see the "XAML Values" section of the TransformGroup reference topic. |
Property Value
Type: Transform
Describes the specifics of the desired render transform.
This property is read/write. The default value is null.
Remarks
The Transform object can be either a single transform type (such as RotateTransform) or a TransformGroup. A TransformGroup is 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 by using Canvas.Left and Canvas.Top, but this does not count as a transform. In this case, the object retains its own local 0,0 for transform purposes.
The render transform origin can also be offset by using the RenderTransformOrigin property.
Applies To
Border (Silverlight 2)
PasswordBox (Silverlight 2)
Popup (Silverlight 2)
StackPanel (Silverlight 2)
TextBox (Silverlight 2)