GridView

If you are familiar with ListView, then you’re already familiar with GridView, because it’s effectively just a ListView with a different layout that wraps its items into additional columns. ListView and GridView both derive from a class called ListViewBase, and every API discussed in the preceding section actually belongs to ListViewBase! Both ListView and GridView add zero public APIs to their base class besides a default constructor. Therefore, you can think of ListView as nothing more than a ListViewBase with an ItemsStackPanel items panel, and you can think of GridView as nothing more than a ListViewBase with an ItemsWrapGrid items panel. The reality is a bit more complicated, however, because the two classes have different implementation ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.