Compartilhar via


IXRUIElement::SetRenderTransform (Compact 2013)

3/28/2014

This method sets information about the transformation that affects where this UI element is displayed.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetRenderTransform(
    IXRTransform* pRenderTransform
) = 0;

Parameters

  • pRenderTransform
    [in] Pointer to an IXRTransform derived object which defines functionality that enables transformations in a two-dimensional plane on the graphical window.

Return Value

Returns an HRESULT that indicates success or failure.

Returns XR_E_INVALID_OBJECT if pRenderTransform is not an object in XAML for Windows Embedded.

Remarks

The following table shows different kinds of single-element transformations.

Transformation type

Number of affected elements

Class

Rotation

Applies to one element

IXRRotateTransform

Scale

Applies to one element

IXRScaleTransform

Skew

Applies to one element

IXRSkewTransform

Translation

Applies to one element

IXRTranslateTransform

Group

Applies to a group of elements

IXRTransformGroup

The IXRTransformGroup object is not a transformation per se, but is instead a container that enables you to specify more than one transformation to apply to this UI element.

.NET Framework Equivalent

System.Windows.UIElement.RenderTransform

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement
IXRUIElement::GetRenderTransform