Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.48 KB

File metadata and controls

44 lines (31 loc) · 1.48 KB
-api-id -api-type
T:Windows.UI.Xaml.Shapes.Path
winrt class

Windows.UI.Xaml.Shapes.Path

-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