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

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

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