WPF Path Markup Syntax

From Evernote:

WPF Path Markup Syntax

Clipped from: http://msdn.microsoft.com/en-us/library/ms752293.aspx



Simple 
<Path Stroke="Black" Fill="Gray"        Data="M 10,100 C 10,300 300,-200 300,100" />
or 

<Path Stroke="Black" Fill="Gray">    <Path.Data>      <PathGeometry Figures="M 10,100 C 10,300 300,-200 300,100" />    </Path.Data></Path>

  有 3 種Command : Move Commands , Draw Commands , Clos Command  
  語法格式  Command X,Y  
Move Command  : M
Draw Commands 
Line Command : L -> L 20,30
Horizontal Line Command : H -> H 90
Vertical Line Command : V -> V 90
Cubic Bezier Curve : C  -> C 100,200 200,400 300,200
Quadratic Cubic Bezier Curve : Q  -> Q 100,200 200,400 
Smooth cubic Bezier Curve : S -> S 100,200 200,400 
Smooth quadratic cubic Bezier Curve : T -> T 100,200 200,400
Elliptical Arc Command : A

TermDescription
size
The x- and y-radius of the arc.
rotationAngle
The rotation of the ellipse, in degrees.
isLargeArcFlag
Set to 1 if the angle of the arc should be 180 degrees or greater; otherwise, set to 0.
sweepDirectionFlag
Set to 1 if the arc is drawn in a positive-angle direction; otherwise, set to 0.
endPoint
The point to which the arc is drawn.