Every view has a border, which by default is invisible. To reveal and style the border you can set the following properties.
The border itself is actually a property, so you set the above like this:
You can even copy an entire border between views: