Point | 173
Shapes and
Geometry
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
<PathSegmentCollection>
</PathSegmentCollection>
</PathFigure.Segments>
</PathFigure>
</PathFigureCollection>
</PathGeometry.Figures>
</PathGeometry>
<PathGeometry .../> describes a series of connected ellipses, arcs, line segments,
curves, and rectangles.
Attributes
Figures (optional)
A
PathFigureCollection
FillRule
(optional)
Describes the rule used to determine if a
Point is inside the shape and should
therefore be painted according to the
Fill attribute value
EvenOdd
After the Point is examined, a ray is drawn from it to infinity in any direc-
tion. If the number of path segments the ray crosses is even, the
Point is
outside the shape. If the number of path segments the ray crosses is odd, the
Point is inside the shape and is painted according to the Fill attribute value.
NonZero
After the Point is examined, a ray is drawn from it to infinity in any direc-
tion. Starting from zero, the count increases by one every time a path
segment crosses the ray from left to right and decreases by one every time a
path segment crosses the ray from right to left. If the resulting value is 0, then
the
Point is outside the shape; otherwise, it is inside the shape and will be
painted accordingly.
PathSegmentCollection
Hierarchy: Freezable Animatable
<PathSegmentCollection>
...
</PathSegmentCollection>
<PathSegmentCollection .../> is a container for segments. It may contain LineSegment,
EllipseSegment, BezierSegment, PolyBezierSegment, PolyQuadraticBezierSegment,
QuadraticBezierSegment, StartSegment, or CloseSegment.
Point
Point is a structure and has no class hierarchy.
<Point X="50" Y="100" />
<Point .../> describes a point in x- and y-coordinates. Point is used primarily to
describe more complex shapes such as
Polygon and Polyline.
Point is often declared through the use of abbreviated markup syntax. Wherever an
attribute is specified as a
Point, it can be declared as a comma-separated pair of Double
values representing the x-coordinate and the y-coordinate, respectively:
<Element SomePointAttribute="0,0" />

Get XAML in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.