Mega Code Archive

 
Categories / C# / WPF
 

PolyBezierSegment Demo

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Stretch" VerticalAlignment="Stretch">         <Path Stroke="Black">           <Path.Data>             <PathGeometry>                          <PathFigure StartPoint="0,0">                   <PolyBezierSegment>                     <PolyBezierSegment.Points>                       <Point X="10" Y="10"/>                       <Point X="20" Y="120"/>                       <Point X="40" Y="130"/>                       <Point X="160" Y="1210"/>                       <Point X="120" Y="315"/>                       <Point X="100" Y="540"/>                     </PolyBezierSegment.Points>                   </PolyBezierSegment>                 </PathFigure>                      </PathGeometry>           </Path.Data>         </Path> </Page>