Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CenterX Property (SkewTransform)

Gets or sets the x-coordinate of the transform center.

XAML
<object CenterX="Double" .../>
Scripting
value = object.CenterX
object.CenterX = value

Property Value

Double

The x-coordinate of the transform center.

This property is read/write. The default value is 0.

Remarks

To skew an object in place, set the CenterX and CenterY properties to the object's center point.

The local origin point 0,0 for an object can be offset on a Canvas using Canvas.Left and Canvas.Top, but this does not count as a transform; the object retains its own local origin in this case for transformation purposes. For details on this concept, see Object Layout in Silverlight.

The following illustration shows three examples of a SkewTransform applied to a Rectangle.

SkewTransform examples

SkewTransform examples

Applies To

SkewTransform

See Also

Silverlight Transforms Overview

Community Additions

Show:
© 2015 Microsoft