Use PolyBezierSegment to Simulated Circle : Geometry « Windows Presentation Foundation « C# / C Sharp






Use PolyBezierSegment to Simulated Circle

Use PolyBezierSegment to Simulated Circle
      

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Path Canvas.Left="150" Canvas.Top="150" Stroke="Black">
        <Path.Data>
            <PathGeometry>
                <PathGeometry.Figures>
                    <PathFigure StartPoint="0 100">
                        <PolyBezierSegment 
                            Points="  55  100,  100   55,  100    0
                                     100  -55,   55 -100,    0 -100
                                     -55 -100, -100  -55, -100    0
                                    -100   55,  -55  100,    0  100" />
                    </PathFigure>
                </PathGeometry.Figures>
            </PathGeometry>
        </Path.Data>
    </Path>
</Canvas>

   
    
    
    
    
    
  








Related examples in the same category

1.LineGeometryLineGeometry
2.EllipseGeometry
3.RectangleGeometryRectangleGeometry
4.Animate GeometryDrawing ExamplesAnimate GeometryDrawing Examples
5.CombinedGeometry for Path.Data and DrawingBrush for Path.FillCombinedGeometry for Path.Data and DrawingBrush for Path.Fill
6.Combines two geometries using the XOR combine modeCombines two geometries using the XOR combine mode
7.Combines two geometries using the union combine modeCombines two geometries using the union combine mode
8.Combines two geometries using the exclude combine modeCombines two geometries using the exclude combine mode
9.Geometry Transform for RectangleGeometry Transform for Rectangle
10.Geometry Transform for PathGeometry Transform for Path
11.Geometry Used with a DrawingBrush
12.Geometry Used as a Clip
13.Tiled Geometry
14.Ellipse Geometry DemoEllipse Geometry Demo
15.LineGeometry DemoLineGeometry Demo
16.Converting text to geometryConverting text to geometry
17.Use a PathGeometry object to highlight displayed text.Use a PathGeometry object to highlight displayed text.