/// <summary>Called when loading is required.</summary>
        /// <param name="sfDataPager">The sf data pager.</param>
        /// <param name="args">
        ///   The
        ///   <see cref="Syncfusion.UI.Xaml.Controls.DataPager.OnDemandLoadingEventArgs" /> instance
        ///   containing the event data.
        /// </param>
        public async void OnDemandLoadExecuteAsync(
            SfDataPager sfDataPager, OnDemandLoadingEventArgs args)
        {
            // Fix for SfDataPager calling on close...
            if (IsClosed)
            {
                return;
            }

            var items = await DataPager.LoadPageAsync(args.StartIndex, PageSize).ConfigureAwait(true);

            sfDataPager.LoadDynamicItems(args.StartIndex, items);
            sfDataPager.PagedSource.Refresh();
        }