title: Implementing the ISupportIncrementalLoading interface - Windows 10 UWP
body: <p>I try to implement the ISupportIncrementalLoading interface, for when scrollbar comes to the end, load more items in other URL.</p>
  
  <p>Example (Expected scenary): My First Request give me a list of items and one NextURL. 
  The next URL need to load more item until the page are full. When I push down scrollbar, loadmore items.</p>
  
  <p>The Problem: This work perfect only in screens with low resolution, when I test this im my second screen with 1680x1050 not load more item after first request (this request give me a NextUrl).</p>
  
  <p>I try to implemet this: <a href="https://marcominerva.wordpress.com/2013/05/22/implementing-the-isupportincrementalloading-interface-in-a-window-store-app/" rel="nofollow">https://marcominerva.wordpress.com/2013/05/22/implementing-the-isupportincrementalloading-interface-in-a-window-store-app/</a></p>
  
  <p>Part of my code different page mentioned before: </p>
  
  <pre><code>    private string NextUrl { get; set; }
      private int currentPage;
      private object MyData{ get; set; }
  
      public bool HasMoreItems
      {
          get {
             return hasMoreItems; 
          }
      }
  
      public IAsyncOperation&lt;LoadMoreItemsResult&gt; LoadMoreItemsAsync(uint count = 0)
      {
  
          var dispatcher = Window.Current.Dispatcher;
  
          return Task.Run&lt;LoadMoreItemsResult&gt;(
              async () =&gt;
              {
  
                  var result = await this.Source.GetPage(this.MyData, this.NextUrl , this.CurrentPage++);
  
                  if (string.IsNullOrEmpty(result.NextUrl ))
                      hasMoreItems = false;
                  else
                      hasMoreItems = true;
  
                  if (result != null || result.Items.Count() == 0 )
                  {
                      this.NextUrl = result.NextUrl ;
                      resultCount = (uint)result.Items.Count();
  
                      await dispatcher.RunAsync(
                          CoreDispatcherPriority.Normal,
                          () =&gt;
                          {
                              foreach (ItemType item in result.Items)
                                  this.Add(item);
                          });
  
                      return new LoadMoreItemsResult() { Count = resultCount };
                  }
              }).AsAsyncOperation&lt;LoadMoreItemsResult&gt;();
      }
  </code></pre>
  
  <p>Someone Help me please?</p>
  
  <p>Thanks</p>