How do I get the start index and number of visible items in a ListView?

前端 未结 7 1955
迷失自我
迷失自我 2020-12-21 02:37

I have a listview working in virtual mode, in the LargeIcons view. Retrieves are expensive, so I want to ask for the data for all the visible items. How do I get the start

7条回答
  •  粉色の甜心
    2020-12-21 03:29

    I know this post is old ..... Wrong

    MyScrollViewer = FindDescendant(MyListView, ScrollViewer)
    

    Right is:

    Dim Myscrollviwer As ScrollViewer
    
    Myscrollviwer = FindDescendant(myListView3, GetType(ScrollViewer))
    MsgBox(Myscrollviwer.VerticalOffset)
    

提交回复
热议问题