title: How to bring into view last added list view item in WPF ListView
body: <p>I am using a view model to bind to the list view. Every time I add an item in the view model internal observable collection, I trigger an LastIndex property with the list.Count-1. The list view is bound to this LastIndex proeprty of VM and the listview correctly selects the last item added to the view. Unfortunately, the view is not able to scroll the last added item into view. </p>
  
  <p>I tried setting IsSynchronizedWithCurrentItem = "True" on list view markup, but it did not help.</p>
  
  <p>This is the markup I am using</p>
  
  <pre><code>&lt;ListView ItemsSource="{Binding Path=Status.Messages}" 
           SelectedIndex="{Binding Path=Status.LastIndex, Mode=OneWay}"
           ScrollViewer.HorizontalScrollBarVisibility="Hidden" 
           ScrollViewer.VerticalScrollBarVisibility="Auto"
           HorizontalAlignment="Stretch" 
           Height="60" 
           IsSynchronizedWithCurrentItem="True" &gt;
      &lt;ListView.Resources&gt;
          &lt;Style TargetType="{x:Type GridViewColumnHeader}"&gt;
              &lt;Setter Property="Visibility" Value="Collapsed" /&gt;
          &lt;/Style&gt;
      &lt;/ListView.Resources&gt;
      &lt;ListView.View&gt;
          &lt;GridView AllowsColumnReorder="False" &gt;
              &lt;GridViewColumn&gt;
                  &lt;GridViewColumn.CellTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;TextBlock Text="{Binding Path=.}" FontWeight="Thin" /&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/GridViewColumn.CellTemplate&gt;
              &lt;/GridViewColumn&gt;
          &lt;/GridView&gt;
      &lt;/ListView.View&gt;
      &lt;ListView.
  &lt;/ListView&gt;
  </code></pre>
  
  <p>Any help in this regard will be greatly appreciated</p>