Lets say, I’ve a ListBox with hundreds of ListBoxItems. On the right side of the ListBox, there is a ScrollViewer which allows the user to see the items above or underneath in the current view of the ListBox. My goal is now to determine which elements i.e. ListBoxItems are currently visible. Is there a method to determine if a ListBoxItem is visible on the screen?
Lets say, I’ve a ListBox with hundreds of ListBoxItems . On the right side
Share
You can use ListBox.ScrollIntoView() to ensure a ListBoxItem is visible.
Can you use this rather than checking if it is visible?