автор: Святополк 24.02.2018 Комментарии: 3
Shapes namespace , Windows. This example shows a Path that might have resulted from using Blend for Visual Studio to produce just a few vector shapes and then saving the result as XAML. This enables minimal markup for horizontal or vertical lines.
But with this versatility comes complexity. You can round the corners of a Rectangle. Using PathGeometry may be more readable than populating a Path.
Add pathFigure1 ; pathGeometry1. This example creates a Polyline with four points set to 10, , 60, , , , and ,
You define the geometry of a path with the Data property. That single Geometry is typically a GeometryGroup , which acts as a container that can composite multiple geometry definitions into a single object for purposes of the object model.
As with a Polygon , the Points property defines the collection of points that make up the boundary. Instead, you use design tools that enable you to work in a design or drawing metaphor on a surface.
Point , ; polyline1. Notice that the first and last points are not connected by the Stroke outline as they are in a Polygon.
A Line ignores any value provided for Fill , because it has no interior space. This segment is indicated by the "C" command in the Data attribute string.
Point , ; points. Point , ; polyline1. Point , ; polygon1.