当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - How to detect draw of last row in a Listview to retrieve the next set of data?

问题描述:

I am looking for a way like Social Networks site retrieve additional data when the last record is visible to user.

How I am able to do that for a ListView in Compact Framework (c# mobile app).

Still looking for answers 2

网友答案:

You need to do a custom-drawn ListView. Even if you simply use the base implementation for the draing, the CDDS_ITEMPREPAINT will tell you the index of the item it's trying to paint. You can use that to determine where in the list you are.

网友答案:

If you override ToString() on your objects, I would expect that you would get hit whenever the items are drawn.

分享给朋友:
您可能感兴趣的文章:
随机阅读: