A Path based on Path.Data, PathGeometry and LineSegment : Path « Windows Presentation Foundation « VB.Net






A Path based on Path.Data, PathGeometry and LineSegment

A Path based on Path.Data, PathGeometry and LineSegment
       

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Path Fill="Cyan" Stroke="Black">
          <Path.Data>
            <PathGeometry>
              <PathGeometry.Figures>
                <PathFigure StartPoint="0,0" IsClosed="True">
                  <PathFigure.Segments>
                    <LineSegment Point="50,0" />
                    <LineSegment Point="50,50" />
                    <LineSegment Point="100,50" />
                  </PathFigure.Segments>
                </PathFigure>
              </PathGeometry.Figures>
            </PathGeometry>
          </Path.Data>
        </Path>

</Page>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Trivial PathTrivial Path
2.Path DataPath Data
3.Path StrokeDashArrayPath StrokeDashArray
4.Sample ArcSample Arc
5.Four Overlapping CirclesFour Overlapping Circles
6.Path IntersectPath Intersect
7.Closed PathFigureClosed PathFigure
8.PathGeometry FigurePathGeometry Figure
9.Path with OuterGlowBitmapEffectPath with OuterGlowBitmapEffect
10.Path with M, C and ZPath with M, C and Z
11.Path and PolyLineSegment.PointsPath and PolyLineSegment.Points
12.Double animation with pathDouble animation with path
13.Matrix animation with pathMatrix animation with path
14.Create a polyline with a PathGeometryCreate a polyline with a PathGeometry
15.Expanding CirclesExpanding Circles
16.Simple ArcSimple Arc
17.Draw a Curved Line with PathFigure, LineSegment, ArcSegmentDraw a Curved Line with PathFigure, LineSegment, ArcSegment
18.LineSegment inside a PathFigureLineSegment inside a PathFigure
19.ArcSegment inside a PathFigureArcSegment inside a PathFigure
20.Set SweepDirection=Clockwise for ArcSegmentSet SweepDirection=Clockwise for ArcSegment
21.PathFigure and BezierSegmentPathFigure and BezierSegment
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