使用WinJs构建的Pivot的滑动事件不适用于Windows Phone

时间:2015-02-17 11:09:22

标签: javascript windows-phone touch winjs slide

您好我使用winJs构建了一个数据透视图但是在我的Windows Phone上尝试这个在PivotItems之间导航的唯一方法就是菜单。我怎样才能解决这个问题?感谢

<div id="pivotScenario3" class="wide" data-win-control="WinJS.UI.Pivot" data-win-options="{ selectedIndex: 1 }">
     <div class="listviewpivotitem" data-win-control="WinJS.UI.PivotItem" data-win-options="{ 'header': 'Circolari', managedLV: true }">
     <div id="content1"></div>
</div>


<div class="listviewpivotitem" data-win-control="WinJS.UI.PivotItem" data-win-options="{ 'header': 'News', managedLV: true }">
    <div id="content"></div>

</div>

1 个答案:

答案 0 :(得分:1)

你试过这种方式:

<div id="pivotScenario3" class="wide" data-win-control="WinJS.UI.Pivot" data-win-options="{ selectedIndex: 1 }">
    <div class="listviewpivotitem" data-win-control="WinJS.UI.PivotItem" data-win-options="{ 'header': 'Circolari', managedLV: true }">
        <div id="content1"></div>
    </div>
    <div class="listviewpivotitem" data-win-control="WinJS.UI.PivotItem" data-win-options="{ 'header': 'News', managedLV: true }">
        <div id="content"></div>
    </div>
</div>