Equivalent of IsFilled="false" for PathFigure in Path Mini-language (Silverlight/WPF) -
i'm trying find equivalent of isfilled="false"
used in pathgeometry, path mini.
you can see 2 paths below identical, except 1 geometries has isfilled="false"
in second <pathgeometry>.<pathgeometry.figures>.<pathfigure>
. desired behavior, i'd have path mini (i.e. in first <path>
). i've looked through documentation , can't seem locate on appears path mini not collection of figures.
as understand it, shapes/geometries converted path mini @ run-time, there way reflect compiled xaml see how interpreter renders 1 pathgeometry path mini?
<canvas background="#fdb" width="800" height="600"> <!-- left-hand path in picture above --> <path canvas.left="100" canvas.top="100" stroke="#385d8a" strokethickness="2" strokelinejoin="round" fill="#4f81bd" data="m0,0l102,0l102,102l0,102z m46.15,49.01l-73.36,130.99l-96.42,-96.12l109.35,355.18"> </path> <!-- right-hand path in picture above --> <path canvas.left="300" canvas.top="100" stroke="#385d8a" strokethickness="2" strokelinejoin="round" fill="#4f81bd"> <path.data> <geometrygroup> <pathgeometry> <pathgeometry.figures> <pathfigure startpoint="0,0" isclosed="true"> <pathfigure.segments> <linesegment point="102,0" /> <linesegment point="102,102" /> <linesegment point="0,102" /> </pathfigure.segments> </pathfigure> </pathgeometry.figures> </pathgeometry> <pathgeometry> <pathgeometry.figures> <pathfigure isfilled="false" startpoint="46.15,49.01"> <pathfigure.segments> <linesegment point="-73.36,130.99" /> <linesegment point="-96.42,-96.12" /> <linesegment point="109.35,355.18" /> </pathfigure.segments> </pathfigure> </pathgeometry.figures> </pathgeometry> </geometrygroup> </path.data> </path> </canvas>
the path mini-lanuage supports outlines strokes must converted fills. straightforward if want one-pixel wide lines , aren't fussy mitering or endcaps. use skinny rectangles. true mathematical "grow" of infinitely narrow stroke using minimum number of points , handling crossings quite bit harder. might able use wpf rendering engine since can it.
Comments
Post a Comment