C# Scroll to top of listbox
if(results.Items.Count > 0)
results.ScrollIntoView(results.Items[0]);
ScrollIntoView
didn't work for me, but this did:
VisualTreeHelperEx.FindDescendantByType<ScrollViewer>(YourListView)?.ScrollToTop();
This uses the Extended WPF Toolkit to get the ScrollViewer, but you can of course do it manually e.g. this answer.