GroupBox

The WPF GroupBox control has the same purpose for same named controls in other technologies, offering a container with a header and a border for grouping nested controls. The following code shows how you can implement a GroupBox, assigning its headers and nesting controls:

image

Figure 32.9 shows the output of this code.

Figure 32.9 Grouping controls with a GroupBox.

image

Notice that in this example the Header property is defined in the hierarchical fashion, meaning that you can add to the header complex visual elements other than simple text. For ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.