private void TimelineControl_Loaded(object sender, RoutedEventArgs e) { if (DataContext is HomeTimelineControlViewModel vm) { vm.StatusCollection.CollectionChanged += (s, args) => { if (!vm.IsScrolled) { ItemsControl.BeginAnimation(MarginProperty, SlideDownAnimation); } }; } }