private void PackageList_SelectionChanged(object sender, SelectionChangedEventArgs e) { PackageList.UpdateLayout(); if (PackageList.SelectedItem != null) { PackageList.ScrollIntoView(PackageList.SelectedItem); } }