Compartilhar via


IXRUIElement::GetRenderTransform (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetRenderTransform(
    IXRTransform** ppRenderTransform
) = 0;

Parameters

  • ppRenderTransform
    [out] Pointer the address of a 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.

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 actually a transformation, but is instead a container that enables you to specify more than one transformation to apply to this UI element.

To use a specific interface pointer type, you can use the helper template version of this method that XAML for Windows Embedded provides. When you supply a derived type, this version automatically supplies a type-safe method that implicitly converts the returned type from a generic interface so you do not have to explicitly call QueryInterface to convert the generic interface into the required object type.

.NET Framework Equivalent

System.Windows.UIElement.RenderTransform

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement
IXRUIElement::SetRenderTransform