ListView

ListView is a control that was introduced for Windows Store apps (and is not a part of WPF and Silverlight). You can think of ListView as a “fancy ListBox” optimized for touch and the style of modern Windows apps. Probably the most important difference is the addition of swiping selection behavior (which can be turned off by setting IsSwipeEnabled to false).

Several visual differences are also noticeable compared to ListBox. In a ListView, items animate in initially, items have a shrink-on-press effect, the margins are different, the selection highlight includes a check mark, and so on. Figure 10.6 demonstrates these differences using the same Rectangle elements as items in both. Note that the background of ListView is Transparent

Get XAML 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.