Export (0) Print
Expand All

BezierSegment Object

Represents a cubic Bezier curve drawn between two points.

XAML
<BezierSegment .../>
Scripting
To create an object using scripting, see the CreateFromXAML method.

Remarks

To specify a Bezier type segment with more control points, see PolyBezierSegment.

Examples

The following example uses a BezierSegment as one of the PathSegments in a PathGeometry.

Rendered path from the example

Rendered path from the example

XAML
<Canvas  
  xmlns="http://schemas.microsoft.com/client/2007"  
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> 
  
  <Path Stroke="Black" StrokeThickness="1" >
    <Path.Data>
      <PathGeometry>
        <PathGeometry.Figures>
          <PathFigure StartPoint="10,50">
            <PathFigure.Segments>
              <BezierSegment
                Point1="100,0"
                Point2="200,200"
                Point3="300,100"/>
              <LineSegment Point="400,100" />
              <ArcSegment
                Size="50,50" RotationAngle="45"
                IsLargeArc="True" SweepDirection="Clockwise"
                Point="200,100"/>
            </PathFigure.Segments>
          </PathFigure>
        </PathGeometry.Figures>
      </PathGeometry>
    </Path.Data>
  </Path> 
</Canvas>

See Also

Silverlight Geometries Overview
PathFigure
PathSegment
QuadraticBezierSegment
PolyQuadraticBezierSegment

Community Additions

Show:
© 2014 Microsoft