Rectangle
The Rectangle control allows you to specify a rectangular region on a form. Width, Height, Fill colour and Border (outline) attributes can be specified. Corners may be rounded by specifying a corner radius.
You can use a Rectangle to add a border around other controls, such as a TextBlock:
Properties
Key properties of Rectangle include:
- Height and Width. Determines the size and dimensions of the shape.
- Stroke The colour and fill (if not transparent) of the shape’s outline. Double-click to open a Colour picker.
- StrokeThickness. Specify the line thickness in pixels.