Description
The PerspectiveOriginX
property in the BaseStyles
class represents the perspective-origin-x
CSS property. This property is used to define the horizontal position of the vanishing point for a 3D transformed element. It is expressed as a Length
value, which can be a percentage or a fixed length.
Usage
To set the PerspectiveOriginX
property, assign it a Length
value. This value can be a specific length (e.g., 100px
) or a percentage (e.g., 50%
), which determines the horizontal position of the perspective origin relative to the element's bounding box.
Example
// Example of setting the PerspectiveOriginX property
var styles = new BaseStyles();
styles.PerspectiveOriginX = new Length(50, LengthUnit.Percent);