Mega Code Archive

 
Categories / VB.Net / WPF
 

BezierSegment for a Path

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     x:Class="Microsoft.Samples.Graphics.RectangleExample"     WindowTitle="Example">   <Canvas>     <Path Stroke="Blue" StrokeThickness="5" Canvas.Top="20">       <Path.Data>                 <PathGeometry>           <PathGeometry.Figures>                           <PathFigure StartPoint="10,10">                 <BezierSegment Point1="130,30" Point2="40,140" Point3="150,150"></BezierSegment>               </PathFigure>                       </PathGeometry.Figures>         </PathGeometry>                         </Path.Data>     </Path>   </Canvas> </Page>