Skip to content

Commit 63c68de

Browse files
committed
Revert docs and usage to original constructor
1 parent 2895616 commit 63c68de

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Incremental Loading Collection/IncrementalLoadingCollectionPage.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
4141
base.OnNavigatedTo(e);
4242

4343
// IncrementalLoadingCollection can be bound to a GridView or a ListView. In this case it is a ListView called PeopleListView.
44-
var source = new PeopleSource();
45-
var collection = new IncrementalLoadingCollection<PeopleSource, Person>(source);
44+
var collection = new IncrementalLoadingCollection<PeopleSource, Person>();
4645
PeopleListView.ItemsSource = collection;
4746

4847
// Binds the collection to the page DataContext in order to use its IsLoading and HasMoreItems properties.

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Microsoft Graph Service/MicrosoftGraphPage.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ private async void GetMessagesButton_Click(object sender, RoutedEventArgs e)
117117
top = Convert.ToInt32(txtTop);
118118
}
119119

120-
var source = new MicrosoftGraphSource();
121120
var collection = new IncrementalLoadingCollection<MicrosoftGraphSource, Message>(
122-
source,
123121
top,
124122
async () =>
125123
{

docs/helpers/IncrementalLoadingCollection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The **IncrementalLoadingCollection** constructor accepts the following arguments
6363

6464
| Name | Description | Type |
6565
| --- | --- | --- |
66-
| source | An implementation of the **IIncrementalSource** interface that contains the logic to actually load data incrementally. | IIncrementalSource |
66+
| source | An implementation of the **IIncrementalSource** interface that contains the logic to actually load data incrementally. If the source isn't provided to the constructor, it is created automatically. | IIncrementalSource |
6767
| itemsPerPage | The number of items to retrieve for each call. Default is 20. | [Integer](https://msdn.microsoft.com/library/windows/apps/System.Int32) |
6868
| onStartLoading | (optional) An Action that is called when a retrieval operation begins. | [Action](https://msdn.microsoft.com/library/system.action.aspx) |
6969
| onEndLoading | (optional) An Action that is called when a retrieval operation ends. | [Action](https://msdn.microsoft.com/library/system.action.aspx) |

0 commit comments

Comments
 (0)