Creating a UniformGrid

The UniformGrid we’ll create in this section is similar to the WPF-specific panel shown in Chapter 6 with the same name. This version, however, is made for Windows Store and universal apps. It defines no dependency properties. (The WPF version of UniformGrid defines two double dependency properties—Rows and Columns—that enable the user to choose the number of rows and columns, and an int FirstColumn property that enables the user to place leading blank cells in the first row. These are omitted here for simplicity.)

Figure 20.1 demonstrates UniformGrid when used with the following four Ellipses:

<Page x:Class="CustomPanels.MainPage"      xmlns="" ...

Get XAML Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.