Visual Studio中的ListView和ListBox之间的区别 [英] Difference between ListView and ListBox in Visual Studio

查看:882
本文介绍了Visual Studio中的ListView和ListBox之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 8应用程序中,"ListView"和"ListBox"之间有什么区别.

解决方案

ListBox是一个较旧的控件,主要用于与其他xaml框架兼容. ListView具有用于触摸等的内置功能.除非特别需要ListBox

,否则请使用ListView.

有关更多详细信息,请参见此处. /p>

特定事件仅适用于ListView:

DragItemsStarting

ItemClick

方法:

CompleteViewChange

CompeteViewChangeFrom

CompleteViewChangeTo

InitializeViewChange

LoadMoreItemsAsync

MakeVisible

ScrollIntoView(对象,ScrollIntoViewAlignment)

StartViewChangeFrom

StartViewChangeTo

属性:

CanDragItems

CanDragItemsProperty

CanReorderItems

CanReorderItemsProperty

DataFetchSize

DataFetchSizeProperty

标题

HeaderProperty

HeadTemplate

HeaderTemplateProperty

HeadTransitions

HeadTransitionsProperty

IncrementalloadingThreshold

IncrementalLoadingThresholdProperty

IncrementalLoadingTrigger

IncrementalLoadingTriggerProperty

IsActiveView

IsActiveViewProperty

IsItemClickEnabled

IsItemClickEnabledProperty

IsSwipeEnabled

IsSwipeEnabledProperty

IsZoomedInView

IsZoomedInViewProperty

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:

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

这篇关于Visual Studio中的ListView和ListBox之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆