Share via


IXRTransformGroup::SetChildren (Compact 2013)

3/28/2014

This method sets the collection of child objects derived from IXRTransform.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetChildren(
    __in IXRTransformCollection* pChildren
) = 0;

Parameters

Return Value

Returns an HRESULT of 0x00000000 = S_OK to indicate success.

Returns XR_E_INVALID_OBJECT if pChildren is not a XAML for Windows Embedded object.

Remarks

In a composite transformation, the order of individual transformations is significant. For example, if you first rotate, then scale, then translate, the result is different than if you first translate, then rotate, then scale. Order is significant in part because transformations such as rotation and scaling are performed with respect to the origin of the coordinate system. Scaling or rotating an object that is centered at the origin produces a different result than scaling or rotating an object that is moved away from the origin.

To define the order of transformation objects in this collection, you can add them to the object returned in pChildren by using its IXRTransformCollection::Insert method, which inserts objects by using a specified index. Or, you can add them in the order in which they must be applied by using its inherited IXRTransformCollection::Add method.

You can also define this collection in Microsoft Silverlight 3 XAML, in the source XAML that is parsed by your application. For information about the differences in XAML implementations in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this collection in the source XAML for your application, see the TransformGroup.Children Property on MSDN.

.NET Framework Equivalent

System.Windows.TransformGroup.Children

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTransformGroup
IXRTransformGroup::GetChildren