This repository has been archived by the owner on Mar 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
PullToRefreshListView
Nikola Metulev edited this page Dec 2, 2015
·
4 revisions
#PullToRefreshListView
PullToRefreshListViewis derived from the built in ListView in the Universal Windows Platform. It enables the popular Pull To Refresh pattern.
##Syntax
<c:PullToRefreshListView x:Name="listView"
ItemsSource="{x:Bind Items}"
RefreshRequested="listView_RefreshCommand"
PullProgressChanged="listView_PullProgressChanged">
<c:PullToRefreshListView.RefreshIndicatorContent>
<Border HorizontalAlignment="Center"
x:Name="refreshindicator"
CornerRadius="30"
Height="20"
Width="20" ></Border>
</c:PullToRefreshListView.RefreshIndicatorContent>
</c:PullToRefreshListView>
All ListView members are available. Additionally:
Event | Description |
---|---|
PullProgressChanged | Occurs when listview overscroll distance is changed |
RefreshRequested | Occurs when the user has requested content to be refreshed |
Property (type) | Description |
---|---|
OverscrollLimit (double) | Gets or sets the Overscroll Limit. Value between 0 and 1 where 1 is the height of the control. Default is 0.3 |
PullThreshold (double) | Gets or sets the PullThreshold in pixels for when Refresh should be Requested. Default is 100 |
RefreshCommand (ICommand) | Gets or sets the Command that will be invoked when Refresh is requested |
RefreshIndicatorContent (object) | Gets or sets the Content of the Refresh Indicator |