title: How to Autoscroll listbox to bottom wpf c#?
body: <p>I have a listbox , I add items dynamically to the listbox.</p>
  
  <p>I want the listbox to autoscroll to the last item added.</p>
  
  <p>I used </p>
  
  <pre><code>List&lt;string&gt; ItemsList = new List&lt;string&gt;
  
  public void InsertItem(string newItem)
      {
          ItemsList.Add(status);
          if (ItemsList.Count &gt; MaxSize)
          {
              ItemsList.RemoveAt(0);
          }
          lb.Items.Refresh();
          lb.SelectedIndex = lb.Items.Count - 1;
          lb.ScrollIntoView(status);
      }
  </code></pre>
  
  <p>but this works only before my application is initialized (i.e I added some items before the application starts)</p>
  
  <p>But after the application has started if I try adding items,the scroll bar is not auto scrolling to the last added item</p>
  
  <p>Could any one tell solution for this</p>