автор: Галина 06.09.2017 Комментарии: 1
Shapes namespace , Windows. To create rounded corners, specify a value for the RadiusX and RadiusY properties. You can round the corners of a Rectangle.
Point , ; polygon1. On the other hand, a Rectangle is probably a better choice for control composition. You can round the corners of a Rectangle.
In code-behind you use a PointCollection to define the points and you add each individual point as a Point value to the collection. A set of 6 Ellipse elements are part of the control template for the ProgressRing control, and 2 concentric Ellipse elements are part of a RadioButton.
This example creates a Polyline with four points set to 10, , 60, , , , and , Set the Fill property of the Shape to the Brush you want. We set the RadiusX property to 50 and the RadiusY property to 10, which gives the Rectangle rounded corners.
You define the geometry of a path with the Data property. These properties specify the x-axis and y-axis of an ellipse that defines the curve of the corners. As with a Polygon , the Points property defines the collection of points that make up the boundary.
This enables minimal markup for horizontal or vertical lines. You define the geometry of a path with the Data property. Using PathGeometry may be more readable than populating a Path.
This topic covers mainly the Shape classes. The rendering logic for a Polygon assumes that you are defining a closed shape and will connect the end point to the start point implicitly. Data value is consuming a serialization format for graphics.
The maximum allowed value of RadiusX is the Width divided by two and the maximum allowed value of RadiusY is the Height divided by two. This topic covers mainly the Shape classes.