O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required