次の方法で共有


IXRUIElement::GetRenderTransform (Windows Embedded CE 6.0)

1/6/2010

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 Silverlight 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. For more information, see Type-Safety in Silverlight for Windows Embedded.

.NET Framework Equivalent

System.Windows.UIElement.RenderTransform

Requirements

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

See Also

Reference

IXRUIElement
IXRUIElement::SetRenderTransform