What is the difference between "ListView" and "ListBox" in a "Windows 8" app.
The ListBox
is an older control primarily for compatibility with other xaml frameworks. The ListView
has build-in functionality for touch etc. Use the ListView
unless you have a specific need for the ListBox
See here for more detail.
Specific events available only for ListView
:
Methods:
ScrollIntoView(Object, ScrollIntoViewAlignment)
Properties:
IncrementalLoadingThresholdProperty
ListBox
is NOT obsolete.
ListBox
has many similarities with ListView
or GridView
(they share the parent class ItemsControl
), but each control is oriented towards different scenarios. ListBox
is best for general UI composition, particularly when the elements are always intended to be selectable, whereas ListView
or GridView
are best for data binding scenarios, particularly if virtualization or large data sets are involved.
Source: https://msdn.microsoft.com/library/windows/apps/br242868
© 2022 - 2024 — McMap. All rights reserved.