Skip to content

Instantly share code, notes, and snippets.

@rkusa
Created October 8, 2010 18:51
Show Gist options
  • Save rkusa/617317 to your computer and use it in GitHub Desktop.
Save rkusa/617317 to your computer and use it in GitHub Desktop.
for (int i = _firstInViewport; i <= _lastInViewport; i++)
{
ListBoxItem item = (ListBoxItem)MainListBox.ItemContainerGenerator.ContainerFromIndex(i);
if (item == null)
continue;
VisualStateManager.GoToState(item, "BeforeLoaded", false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment