XAML Border Code Example
The CornerRadius property represents the degree to which the corners of a Border are rounded.
The code snippet in Listing 1 creates a border around a Canvas element and sets its properties.
The output looks like in Figure 1 where all the child controls are wrapped horizontally.
Listing 1
The complete article has moved here: Border in WPF