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

X Property (Rect)

Gets or sets the X-coordinate value of the top left corner of this Rect.

See Remarks.
value = object.x
object.x = value

Property Value


The X-coordinate value of the top left corner of this Rect.

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


Property values for a Rect and an object for Rect are not available for all cases where Rect is used as a property type. See Remarks for Rect.

The properties of a Rect do not have a XAML usage because there is no way to create a Rect in XAML as an object element. Instead, you always specify a Rect as a string that is either provided as a XAML attribute value or set to a property value in script. Each of these cases is supported by a type conversion behavior. If the particular property being set can return a Rect as an object to script, then the value as provided in the original string can be retrieved as the X value of that Rect object.

Applies To


See Also

Ink Support In Microsoft Silverlight
Silverlight Geometries Overview

Community Additions

© 2015 Microsoft