The Border control in WPF is used as a Decorator, which you can use to draw a border around another control. As the WPF panels do not support adding a border around its edges, the Border control is used to achieve the same.
This recipe will guide you to add a border to a control. You can also use the same concept to decorate a group of controls placed inside a panel, by wrapping the panel with a Border.