title: Many entries with OnItemsChanged(), how to delete old entries
body: <p>I am new to xaml. Entries are added into scrolling view and with the event change. There are many entries being logged causing memory consumption. How to delete entries that are entered earlier. And those entries on deletion should not appear in scroll view too. Thanks in advance.</p>
  
  <p>Here is xaml</p>
  
  <pre><code>&lt;local:ScrollingLV x:Name="LogView" Width="300" Height="100"   Margin="10,0,10,10" ItemsSource="{Binding LogMsg}"&gt;
  </code></pre>
  
  <p>Here is the code that adds to the scroll view</p>
  
  <pre><code>public partial class ScrollingLV : ListView
  {
      protected override void OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
      {
          if (e.NewItems != null)
          {
              int iCount = e.NewItems.Count;
              if (iCount &gt; 0)
              {
                  this.ScrollIntoView(e.NewItems[iCount - 1]);
              }
          }
  
         base.OnItemsChanged(e);
      }
  }
  </code></pre>