title: How to get ten, ten items from Observable Collection?
body: <p>I am trying to load ten items per page in windows phone 7 list box. When I scroll to end of the list box the another 10 items should be loaded. I have try with a simple sting. I have done with that. When I try to load my original observable collection I can not get the 10,10 items.</p>
  
  <p>I have try like this:-</p>
  
  <pre><code>    void AddMoreItems()
      {
          int start = items.Count;
          int end = start + 10;
          for (int i = start; i &lt; end; i++)
          {
              items.Add("Item " + i);
          }
      }
  </code></pre>
  
  <p>Here I can load 10, 10 items per page. </p>
  
  <p>Now I try to use observable collection:-</p>
  
  <pre><code>int end = 10;
  int start = 0;
  int total = listForLoading.Count;
  
  void AddMoreItems()
  {
      if (total &gt; 0)
      {
          int i = start;
          foreach (var item in StudentDetails)
          {
              if (i &lt; end)
              {
                  items.Add(new ListBoxWithButtonModel() { FirstName = item.FirstName,LastName = item.LastName,Age = item.Age,PersonImage=item.PersonImage });                       
                  i++;
              }
          }
          total = total &gt; 10 ? total - 10 : total - total;
          start = items.Count;
          end = total &gt; 10 ? start + 10 : start + total;
      }
  }
  </code></pre>
  
  <p>Here I am getting the same items again and again. I am trying to remove the items from collections after added to the list box. But I am getting error.</p>
  
  <p>Please let me any idea to load 10, 10 items from the observable collection.</p>