Windows phone 8 如何在windows phone 8中将页脚添加到列表框

Windows phone 8 如何在windows phone 8中将页脚添加到列表框,windows-phone-8,listbox,footer,Windows Phone 8,Listbox,Footer,我正在做一个WindowsPhone8应用程序。在这个列表框中,我使用了。对于第一页,我从服务器获取数据,并将该数据添加到列表框中。现在我想在列表框底部添加显示更多,即在最后一项之后,从服务器获取下一项 我怎样才能做到这一点呢?我将继续发布逻辑,因为我的代码可能与您的代码不匹配 所以 1->将服务器数据保存在数组或列表中。 2->设计xaml时,父网格有两行或更多行,最后一行用于显示更多内容。还有之前的那张。(相应地调整高度) 3->用有限的数据填充它。 4->接下来使用ListBox.Item

我正在做一个WindowsPhone8应用程序。在这个列表框中,我使用了。对于第一页,我从服务器获取数据,并将该数据添加到列表框中。现在我想在列表框底部添加显示更多,即在最后一项之后,从服务器获取下一项


我怎样才能做到这一点呢?

我将继续发布逻辑,因为我的代码可能与您的代码不匹配

所以

1->将服务器数据保存在数组或列表中。 2->设计xaml时,父网格有两行或更多行,最后一行用于显示更多内容。还有之前的那张。(相应地调整高度) 3->用有限的数据填充它。 4->接下来使用
ListBox.Items.Add(data)
方法将数据添加到列表中。禁用“排序”属性,以便将元素插入列表底部 ->通过链接


使用“显示更多”按钮上的第四步单击。。还可以调整列表的高度或将其放入scrollviewer中,以便进行有限高度的滚动。如果进一步查询

听到您必须使用水平滚动加载下一个数据,请更新数据库

检查以下教程

 we can Gets or sets the amount of data to fetch for virtualizing/prefetch operations by using 
 ListViewBase.DataFetchSize property and can Initiates the asynchronous request to load more data items, in accordance with the active incremental loading settings by ListViewBase.LoadMoreItemsAsync method.

If you want to do it by pagination then the following links may be helpfull for you
 DataFetchSize method 
LoadMoreItemsAsync method: 
You can see examples of using these here (though note that the sample was based on Windows 8 BUILD release and the apis have had some changes)