What is the difference between "ListView" and "ListBox" in a "Windows 8" app.
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- How to create Circular view on android wear?
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Working with hmacsha256 in windows store app
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- Set color of 'empty' area of ListView in A
- Copy different file to output directory for releas
- Edit & Continue doesn't work
ListBox
is NOT obsolete.ListBox
has many similarities withListView
orGridView
(they share the parent classItemsControl
), 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, whereasListView
orGridView
are best for data binding scenarios, particularly if virtualization or large data sets are involved.Source: https://msdn.microsoft.com/library/windows/apps/br242868
The
ListBox
is an older control primarily for compatibility with other xaml frameworks. TheListView
has build-in functionality for touch etc. Use theListView
unless you have a specific need for theListBox
See here for more detail.
Specific events available only for
ListView
:DragItemsStarting
ItemClick
Methods:
CompleteViewChange
CompeteViewChangeFrom
CompleteViewChangeTo
InitializeViewChange
LoadMoreItemsAsync
MakeVisible
ScrollIntoView(Object, ScrollIntoViewAlignment)
StartViewChangeFrom
StartViewChangeTo
Properties:
CanDragItems
CanDragItemsProperty
CanReorderItems
CanReorderItemsProperty
DataFetchSize
DataFetchSizeProperty
Header
HeaderProperty
HeadTemplate
HeaderTemplateProperty
HeadTransitions
HeadTransitionsProperty
IncrementalLoadingThreshold
IncrementalLoadingThresholdProperty
IncrementalLoadingTrigger
IncrementalLoadingTriggerProperty
IsActiveView
IsActiveViewProperty
IsItemClickEnabled
IsItemClickEnabledProperty
IsSwipeEnabled
IsSwipeEnabledProperty
IsZoomedInView
IsZoomedInViewProperty