Windows.UI.Xaml.Shapes.Path

June 22, 2022 · View on GitHub

-description

Draws a series of connected lines and curves. The line and curve dimensions are declared through the Data property, and can be specified either with Move and draw commands syntax, or with an object model.

-xaml-syntax

<Path .../>

-remarks

-examples

This XAML example uses a Path with a GeometryGroup value as Data to draw a superimposed ellipse and rectangle shape.

<Canvas> 
  <Path Fill="Gold" Stroke="Black" StrokeThickness="1">
    <Path.Data>
      <GeometryGroup>
        <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50"/>
        <RectangleGeometry Rect="0,0,100,100" />
      </GeometryGroup>
    </Path.Data>
  </Path> 
</Canvas>

-see-also

Shape, Data, XAML vector-based drawing sample, Draw shapes, Move and draw commands syntax, Windows.UI.Xaml.Media namespace