May 2010
Intermediate to advanced
1272 pages
61h 18m
English
BorderConsider the Border control as a special container that draws a border around the child control, with the specified color, thickness, and corner radius. The following XAML code draws a red border with a depth of 3 around a rectangle:

Changes are immediately visible in the Visual Studio designer. Notice that the Border can nest just one child element, so if you want to add multiple visual elements, you need to encapsulate them within a container such the Grid or StackPanel. Figure 32.1 shows the result of the preceding code.
Figure 32.1 Drawing a border.
Read now
Unlock full access