private void OnLoaded(object sender, RoutedEventArgs e) { _scroll = ListBox.FindVisualChild<ScrollViewer>(); if (_scroll != null) { _scroll.LayoutUpdated += ScrollLayoutUpdated; } }