You've now spent a considerable amount of time poring over the intricacies of the WPF layout containers. With this low-level knowledge in mind, it's worth looking at a few complete layout examples. Doing so will give you a better sense of how the various WPF layout concepts (such as size-to-content, stretch, and nesting) work in real-world windows.
A Column of Settings
Layout containers such as the Grid make it dramatically easier to create an overall structure to a window. For example, consider the window with settings shown in Figure 4-20. This window arranges its individual components—labels, text boxes, and buttons—into a tabular structure.
Folder settings in a column
To create this table, you begin by defining the rows ...