-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Shapes.Path |
winrt class |
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.
<Path .../>
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>
Shape, Data, XAML vector-based drawing sample, Draw shapes, Move and draw commands syntax, Windows.UI.Xaml.Media namespace