Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
| XAML | <object property = "pointString" ... /> |
| Scripting | object.property = "pointString" |
pointString Grammar
X,Y
-or-
X Y
- X is the X (horizontal) point position in pixels. Y is the Y (vertical) point position in pixels.
- X and Y can be negative, with the result that the Rect definition is off the screen, unless there is additional translation.
- X and Y can be non-integer values in terms of permitted values, but are interpreted as integers regardless during rendering.
- You can use a space rather than a comma as the delimiter betweeen X and Y.
Examples
| JavaScript |
function moveLine(sender, args) {
myPath = sender.findName("myPath");
myPath.Data.EndPoint = "250,150";
}
|
In this example, myPath is a Path previously defined in XAML, and the function is attached to a Canvas root as a mouse event handler.
See Also
Path Markup Syntax
Silverlight Transforms Overview