wpf - XAML PathGeometry Relative Positioning (m not M) -


i trying replicate square drew (path) using (pathgeometry). want move square around based on starting position, , let rest render relative that. can't figure out how replicate "m" property of (path.data) way, reason don't automagically use "m". educate me on how fix this? google not distinguish between "m" , "m".

original path (square):

<path stroke="red" data="m 15 250 70 0 0 90 -70 0 z"></path> 

and alternative trying work (which apparently makes easier move full square binding starting point value control).

<path stroke="black" strokethickness="1">             <path.data>                 <pathgeometry>                     <pathgeometry.figures>                         <pathfigurecollection>                             <pathfigure isclosed="true" startpoint="15,250">                                 <pathfigure.segments>                                     <pathsegmentcollection>                                         <linesegment point="70,0" />                                         <linesegment point="0,90" />                                         <linesegment point="-70,0" />                                     </pathsegmentcollection>                                 </pathfigure.segments>                             </pathfigure>                         </pathfigurecollection>                     </pathgeometry.figures>                 </pathgeometry>             </path.data>         </path> 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -