With all the features described in this chapter and the preceding chapter, you can control layout in many interesting ways. This isn’t like the old days, where your only options were pretty much just choosing a size and choosing an (X,Y) point on the screen.
The built-in panels—notably
Grid—are a key part of enabling rapid development of apps that can be tailored to screens of all shapes and sizes. But one of the most powerful aspects of XAML layout is that parent panels can themselves be children of other panels. Although each panel was examined in isolation in this chapter, panels can be nested to provide impressive versatility. As you’ll see in Chapter 10, controls such as
ListBox use such panels to arrange their own items, and you ...