Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
1/6/2010
This method retrieves the x-coordinate of the transform center.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetCenterX(
float* pCenterX
) = 0;
Parameters
- pCenterX
[out] Pointer to a float value that indicates the x-coordinate of the transform center.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
To skew an object in place, use the IXRSkewTransform::SetCenterX and IXRSkewTransform::SetCenterY methods 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.
The following illustration shows three skew transformations of a rectangle:
.jpg)
.NET Framework Equivalent
System.Windows.Media.SkewTransform.CenterX
Requirements
| Header | XamlRuntime.h |
| sysgen | SYSGEN_XAML_RUNTIME |
| Windows Embedded CE | Windows Embedded CE 6.0 R3 |
See Also
Reference
IXRSkewTransform
IXRDoubleAnimation
IXRSkewTransform::SetCenterX