PullToRefreshListView XAML Control

The PullToRefreshListView Control, is derived from the built-in List View in XAML. It lets the user 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.

This control uses the PullToRefreshLabel and ReleaseToRefreshLabel properties to provide a visual indication to the user.

If you want more than a text to display, you can then use PullToRefreshContent and ReleaseToRefreshContent. In this case the PullToRefreshLabel and ReleaseToRefreshLabel properties will be ignored.

The RefreshIndicatorContent can be used with the PullProgressChanged event to provide a custom visual for the user.

To cancel a refresh request just slide back to a position prior to the PullThreshold position. Upon release the RefreshIntentCanceled event will be raised and the RefreshIntentCanceledCommand, if any, will be executed.


<controls:PullToRefreshListView Name="PullToRefreshListViewControl"
    ItemsSource="{x:Bind _items}"   
    RefreshIntentCanceledCommand="{x:Bind RefreshIntentCanceled}"
        <Border HorizontalAlignment="Center" x:Name="refreshindicator" CornerRadius="30" Height="20" Width="20" ></Border>

Example Image

PullToRefreshListView animation

Example Code

PullToRefreshListView Sample Page

Default Template

PullToRefreshListView XAML File is the XAML template used in the toolkit for the default styling.

Requirements (Windows 10 Device Family)

Device family Universal, 10.0.14393.0 or higher
Namespace Microsoft.Toolkit.Uwp.UI.Controls