WinJS:设置listView垂直滚动

Win8 期盼用户的使用习惯是横屏,以及listView是横向滚动的,所以在使用WinJS创建ListView时,默认是横向的,我们要更改的话要进行设置,查了好久资料,最后还是看官方SDK源码找到的设置方法:

<div data-win-control="WinJS.UI.ListView" 
     data-win-options="{layout: {type: WinJS.UI.ListLayout}}">
</div>

Represents a layout for the ListView in which items are arranged in a vertical list.

 

更多ListView的可以查看: http://technet.microsoft.com/zh-cn/subscriptions/hh850406.aspx

 

 

posted on 2013-03-11 21:22  老Zhan  阅读(574)  评论(0编辑  收藏  举报