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

 

 

相关文章:

  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-06-09
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
相关资源
相似解决方案