Share via


IXRSkewTransform::SetCenterX (Compact 2013)

3/28/2014

This method sets the x-coordinate of the transform center.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetCenterX(
    float CenterX
) = 0;

Parameters

  • CenterX
    [in] A float value that indicates the new x-coordinate of the transform center.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To skew an object in place, use this method and the IXRSkewTransform::SetCenterY method to set the transformation to the center point of the object.

You can offset the local origin point (0,0) for a UI element on an IXRCanvas container object by setting the attached properties Canvas.Left and Canvas.Top. However, this is not considered a transformation; the UI object keeps its own local origin point for transformation purposes.

For more information about skew transformations together with an illustration, see IXRSkewTransform.

.NET Framework Equivalent

System.Windows.Media.SkewTransform.CenterX

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRSkewTransform
IXRDoubleAnimation
IXRSkewTransform::GetCenterX