- Enables PullToRefresh to ListView, GridView, and more.
- Good pull feeling.
- Add package from NuGet.
- Write XAML & CS
- Done!
- MainPage.xaml
<ListView xmlns:uwp="using:AmazingPullToRefresh.Controls">
<uwp:PullToRefreshAdorner.Extender>
<uwp:PullToRefreshExtender RefreshRequested="PullToRefreshExtender_RefreshRequested" />
</uwp:PullToRefreshAdorner.Extender>
</ListView>
- MainPage.xaml.cs
private async void PullToRefreshExtender_RefreshRequested(object sender, RefreshRequestedEventArgs e)
{
var deferral = e.GetDeferral();
await Task.Delay(2500); // something
deferral.Complete();
}
- Stylize pull to refresh indicator
This library released under the MIT License.