Windows 10 UWP Community Toolkit is a collection of a helper class, custom controls, and application services. PullToRefresh controls the user to pull down the ListView to trigger a refresh of the content. This control can create rich animations, and it’s easy to implement.
Create a new Windows 10 UWP project or open your existing project. Right click on your project and select Manage NuGet Packages. Search for Microsoft.Toolkit.UWP.UI.Controls and install it, as shown below:

This will add Microsoft.Toolkit.Uwp.UI.Controls.dll in 'References' of your project, as shown below.

Add the toolkit reference in your XAML pages, using the code given below:
XAML
xmlns:UWPToolkit="using:Microsoft.Toolkit.Uwp.UI.Controls"
Now, open your XAML page and write the code.
- <Grid Padding="20" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
- <UWPToolkit:PullToRefreshListView x:Name="pullList" OverscrollLimit="0.4" PullThreshold="10" RefreshRequested="ListView_RefreshCommand" PullProgressChanged="ListView_PullProgressChanged" Background="#FF997D7D">
- <UWPToolkit:PullToRefreshListView.RefreshIndicatorContent>
- <TextBlock Height="50" Text="Pull" FontSize="26" Foreground="Black"></TextBlock>
- </UWPToolkit:PullToRefreshListView.RefreshIndicatorContent>
- <UWPToolkit:PullToRefreshListView.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Name}"></TextBlock>
- </DataTemplate>
- </UWPToolkit:PullToRefreshListView.ItemTemplate>
- </UWPToolkit:PullToRefreshListView>
- </Grid>


Prasanna MuraliPosted Sep 5, 2016, 11:09 AM
Nice post......