160
|
Chapter 9: Shapes and Geometry
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Most Shape and Geometry elements use instances of the structure Point, which is
detailed in this chapter.
ArcSegment
Hierarchy: Freezable Animatable PathSegment
Type: Geometry
<ArcSegment
LargeArc="true|false"
Point="5,5"
Size="10,10"
SweepFlag="true|false"
XRotation="45" />
or:
<ArcSegment
LargeArc="true|false"
Size="10,10"
SweepFlag="true|false"
XRotation="45">
<ArcSegment.Point>
<Point X="5" Y="5" />
</ArcSegment.Point>
</ArcSegment>
<ArcSegment .../> should be a child of PathFigure. It represents an elliptical arc
between two instances of
Point (Figure 9-2). ArcSegment does not contain its start point
location because the start point is assumed to be the current
Point of the parent
PathFigure.
StrokeStartLineCap Enumeration Describes the shape used to draw the start of a line. Must
be one of:
Flat
No line cap.
Round
The line is capped with a semicircle equal in diameter
to the line thickness.
Square
The line is capped with a square whose sides are equal
in length to the line thickness.
Triangle
The line is capped with a triangle equal in height to
the line thickness.
The default is
Flat.
StrokeThickness Double Sets the width of the shape’s outline.
Height Double Describes the height of the element.
Width Double Describes the width of the element.
Table 9-1. Attributes common to all Shape elements (continued)
Property name Data type Purpose

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.