UIElement::RenderTransformOrigin Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the center point of any possible render transform declared by RenderTransform, relative to the bounds of the element. This is a dependency property.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

property Point RenderTransformOrigin {
	Point get();
	void set(Point value);

Property Value

Type: System.Windows::Point

The value that declares the render transform. The default value is a Point with coordinates (0,0).

RenderTransformOrigin has a somewhat nonstandard use of the Point structure value, in that the Point does not represent an absolute location in a coordinate system. Instead, values between 0 and 1 are interpreted as a factor for the range of the current element in each x,y axis. For example, (0.5,0.5) will cause the render transform to be centered on the element, or (1,1) would place the render transform at the bottom right corner of the element. NaN is not an accepted value.

Values beyond 0 and 1 are also accepted, and will result in more unconventional transform effects. For instance, if you set RenderTransformOrigin to be (5,5), and then apply a RotateTransform, the rotation point will be well outside the bounds of the element itself. The transform will spin your element around in a big circle that originates beyond bottom right. The origin might be somewhere inside its parent element and could possibly be possibly out of frame or view. Negative point values are similar, these will go beyond the top left bounds.

Render transforms do not affect layout, and are typically used to animate or apply a temporary effect to an element.

<object RenderTransformOrigin="xOrigin, yOrigin"/>

    <Point X="xOrigin" Y="yOrigin"/>


The horizontal origin factor. This is typically given as a value between 0 and 1. See Remarks.


The vertical origin factor. This is typically given as a value between 0 and 1. See Remarks.

Identifier field


Metadata properties set to true


The following example builds up elements in code, applies a RenderTransformOrigin, and then applies a RenderTransform.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top