[英]Is there a way to find out how much space in isolated storage you app is using on WP7?
[英]How to find out if you are at the bottom of a list box (WP7 Silverlight)
我有一個用於排行榜的列表框,向其中添加了一些自定義控件,這些控件顯示每個位置的相關信息。 目前,排行榜僅顯示前25個得分。 如果用戶滾動到列表的底部(即數字25),我真的希望它加載下一個25。 這與Windows Phone市場中的行為相同。 當用戶一直滾動到最底端或某種表明這種情況的屬性時,會觸發事件嗎?
使用以下命令提取列表框的子滾動查看器
var elt = VisualTreeHelper.GetChild(parent, i);
if (elt is ScrollViewer)
scrollViewer = (ScrollViewer)elt;
在handling_completed事件處理程序中使用以下代碼
if ((scrollViewer.ScrollableHeight != 0 && scrollViewer.VerticalOffset != 0
&& (scrollViewer.ScrollableHeight - scrollViewer.VerticalOffset) <= 10) || scrollViewer.ScrollableHeight == 0)
//do work here
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.