Before reading this article, please go through the following article.
- Introduction To Universal Windows Platform (UWP) App Development Using Windows 10 And Visual Studio 2015
- How to add UWP ToolKit controls in Universal Application Development With XAML AND C#
The PullToRefreshListView Control is derived from the built-in List View in XAML. It lets the users pull down beyond the top limit on the listview to trigger a refresh of the content. This control can create rich animations, and is easy to use.
This control is very common on mobile devices where the user can pull from the top, to force a content refresh in applications like Twitter.
Reading this article, you can learn how to use UWP Tool Kit Control – PullToRefereshListView in Universal Windows Apps development with XAML and Visual C#.
The following important tools are required for developing UWP.
- Windows 10 (Recommended)
- Visual Studio 2015 Community Edition (It is a free software available online)
Now, we can discuss step by step app development.
Step 1 - Open Visual Studio 2015 -> Start -> New Project-> Select Universal (under Visual C# -> Windows) -> Blank App -> give it a suitable name (e.g. - UWP PullToReferesh) -> OK.

Step 2 - Choose the Target and Minimum platform versions that your Universal Windows application will support.

After this, the project creates App.xaml and MainPage.xaml. For adding UWPToolKit Control, please refer- How to add UWP ToolKit controls in Universal Application Development With XAML AND C#
Step 3 - Add TextBlock control and change the name and text property for title.

Step 4 - Add images in the Assets folder, for PullToRefereshListView.

Step 5 - Add UWP Tool Kit namespace in MainPage.xaml.
xmlns:Controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
Add PullToRefereshListView Control from UWP Tool Kit and change the name property.

Step 6 - Add the following Xaml code for creating data template for PullToRefereshListView control.
- <Controls:PullToRefreshListView.RefreshIndicatorContent>
- <Image Height="50"></Image>
- </Controls:PullToRefreshListView.RefreshIndicatorContent>
- <Controls:PullToRefreshListView.ItemTemplate>
- <DataTemplate>
- <Grid>
- <Image Source="{Binding IName}" Stretch="UniformToFill" /> </Grid>
- </DataTemplate>
- </Controls:PullToRefreshListView.ItemTemplate>





Join the conversation! Your thoughts help the community grow.