автор: Горислава 26.06.2017 Комментарии: 6
If your intention is to create a rectangle shape around other content, it might be better to use Border because it can have child content and will automatically size around that content, rather than using the fixed dimensions for height and width like Rectangle does. This segment is indicated by the "C" command in the Data attribute string.
Point , ; points. Set the Fill property of the Shape to the Brush you want.
For more info about brushes, see Using brushes. Using PathGeometry may be more readable than populating a Path.
You could then use a TranslateTransform to move the entire Line, if you wanted it to start at a point other than 0,0. Add pathFigure1 ; pathGeometry1. Shape classes and Geometry classes.
This segment is indicated by the "C" command in the Data attribute string. For example, a Point is part of the event data for touch events, so you can know exactly where in a coordinate space the touch action occurred. In this form, the Path.
Shapes namespace , Windows. A Border also has the option of having rounded corners if you set the CornerRadius property.
This topic covers mainly the Shape classes. There are two techniques for setting Data: Point 50, 50 ; pathFigureCollection1.
If you specify a Fill of a Polyline , the Fill paints the interior space of the shape, even if the start point and end point of the Points set for the Polyline do not intersect. Add pathFigure1 ; pathGeometry1. As with a Polygon , the Points property defines the collection of points that make up the boundary.
We set the StrokeThickness to 3. The first segment is a cubic Bezier curve that begins at , and ends at , , which is drawn by using the two control points ,25 and , The next example creates a Rectangle with a Width of and a Height of