PathFigure and BezierSegment : Path « Windows Presentation Foundation « VB.Net






PathFigure and BezierSegment

PathFigure and BezierSegment
     

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF" Height="300" Width="290">
    <Canvas Margin="10">
        <Path Stroke="Black" StrokeThickness="5" StrokeLineJoin="Round"
              StrokeStartLineCap="Round" StrokeEndLineCap="Round">
            <Path.Data>
                <PathGeometry>
                    <PathFigure IsClosed="False" StartPoint="10,100">
                        <LineSegment Point="150,100" />
                        <ArcSegment Point="250,50" IsLargeArc="False" 
                                    Size="200,80" SweepDirection="Clockwise"/>
                        <ArcSegment Point="150,150" IsLargeArc="False" 
                                    Size="100,80" />
                        <BezierSegment Point1="200,300" Point2="200,-80" 
                                       Point3="250,230"/>
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>
    </Canvas>
</Window>

   
    
    
    
    
  








Related examples in the same category

1.Trivial PathTrivial Path
2.Path DataPath Data
3.A Path based on Path.Data, PathGeometry and LineSegmentA Path based on Path.Data, PathGeometry and LineSegment
4.Path StrokeDashArrayPath StrokeDashArray
5.Sample ArcSample Arc
6.Four Overlapping CirclesFour Overlapping Circles
7.Path IntersectPath Intersect
8.Closed PathFigureClosed PathFigure
9.PathGeometry FigurePathGeometry Figure
10.Path with OuterGlowBitmapEffectPath with OuterGlowBitmapEffect
11.Path with M, C and ZPath with M, C and Z
12.Path and PolyLineSegment.PointsPath and PolyLineSegment.Points
13.Double animation with pathDouble animation with path
14.Matrix animation with pathMatrix animation with path
15.Create a polyline with a PathGeometryCreate a polyline with a PathGeometry
16.Expanding CirclesExpanding Circles
17.Simple ArcSimple Arc
18.Draw a Curved Line with PathFigure, LineSegment, ArcSegmentDraw a Curved Line with PathFigure, LineSegment, ArcSegment
19.LineSegment inside a PathFigureLineSegment inside a PathFigure
20.ArcSegment inside a PathFigureArcSegment inside a PathFigure
21.Set SweepDirection=Clockwise for ArcSegmentSet SweepDirection=Clockwise for ArcSegment
22.Path with BlurBitmapEffectPath with BlurBitmapEffect
23.Path with DropShadowBitmapEffectPath with DropShadowBitmapEffect
24.Path based on GeometryGroupPath based on GeometryGroup
25.Set for RenderTransformOrigin PathSet for RenderTransformOrigin Path
26.Use TransformGroup to group transformationsUse TransformGroup to group transformations
27.Transform PathTransform Path
28.Grouped ShapesGrouped Shapes
29.FileRule = Nonzero for PathFileRule = Nonzero for Path
30.FileRule = EvenOdd for PathFileRule = EvenOdd for Path
31.Path with EllipseGeometriesPath with EllipseGeometries
32.One Path with two EllipseGeometriesOne Path with two EllipseGeometries
33.Path with ShadowPath with Shadow
34.Dotted PathDotted Path