RenderTransformOrigin Property

UIElement.RenderTransformOrigin Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public Point RenderTransformOrigin { get; set; }
<uiElement RenderTransformOrigin="x,y"/>

XAML Values


The X value of the Point that specifies the transform origin.


The Y value of a Point that specifies the transform origin.

The XAML syntax for RenderTransformOrigin specifies a new Point as a string. The delimiter between the x and y values of the point can be either a comma or a space. Note that the comma usage has potential to clash with the usage of comma as the decimal point in some UI cultures. For more information, see the "XAML Attribute Syntax" section of Point.

Property Value

Type: System.Windows.Point
The origin point of the render transform. The default value is a point with value 0,0.

Dependency property identifier field: RenderTransformOriginProperty

This property is one of several ways to offset an object in layout. Other options include Canvas.Left / Canvas.Top, or using a TranslateTransform for RenderTransform.

Generally you should align points/coordinates to integer values.

Design surfaces of tools that generate XAML from a UI design metaphor often use transforms to specify positioning. Such transforms also often specify a RenderTransformOrigin in the produced XAML.

Values for RenderTransformOrigin are evaluated against the top left corner of the bounding box for a UIElement.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft