Share via


IXRUIElement::SetRenderTransformOrigin (Windows Embedded CE 6.0)

1/6/2010

This method determines the origin point of any possible display-transformation, in relation to the bounds of this UI element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetRenderTransformOrigin(
    XRPoint *pRenderTransformOrigin
) = 0; 

Parameters

  • pRenderTransformOrigin
    [in] Pointer to an XRPoint structure that provides about the x,y coordinates that define the origin point for render-transforms.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The pRenderTransformOrigin value can be used to offset an element in a layout.

This method provides one of several ways to offset an object in a layout. Other options include calling the inherited method IXRDependencyObject::SetAttachedProperty to change Canvas.Left or Canvas.Top, or creating a new IXRTranslateTransform object and passing it into a call to IXRUIElement::SetRenderTransform.

.NET Framework Equivalent

System.Windows.UIElement.RenderTransformOrigin

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRUIElement
IXRUIElement::GetRenderTransformOrigin