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: