Hi, i want to know, if user can see the item at specifued position of ListView.
Currently i am doing like that:
Is there any other "right" way having such ability?
Thanks!
Currently i am doing like that:
bool
isItemVisible(MyBusinessLogicClass c)
{
for
(
int
y = listView.Height; y > 10; y -= 10)
{
var result = listView.ElementTree.GetElementAtPoint(
new
Point(5, y),
x => (x
is
SimpleListViewVisualItem) && ((SimpleListViewVisualItem)x).Data.DataBoundItem == c);
if
(result !=
null
)
return
true
;
}
return
false
;
}
Is there any other "right" way having such ability?
Thanks!