Exemplo n.º 1
0
        void Collection_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            if (e.Action != NotifyCollectionChangedAction.Add || e.NewItems == null || e.NewItems.Count < 1)
            {
                return;
            }

            this.Dispatcher.Invoke(() => Target.ScrollIntoView(e.NewItems[e.NewItems.Count - 1]));
        }