September 2012
Intermediate to advanced
464 pages
10h 55m
English
Table layout is a popular placement strategy, supported by the Grid panel. Let's examine the Grid and see what it's capable of.
Make sure Visual Studio is up and running.
We'll create a simple UI that benefits from a grid-like layout and demonstrate some of its features:
CH03.GridDemo.MainWindow.xaml. There's already a Grid placed inside the Window. That's because the Grid is typically used as the main layout panel within a window.Title of Window to Grid Demo.Grid, add the following markup to create some rows and columns:<Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition ...