Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tmyt/uwp_pulltorefreshlistview

This is a pull to refresh listview for uwp.
https://github.com/tmyt/uwp_pulltorefreshlistview

Last synced: about 1 month ago
JSON representation

This is a pull to refresh listview for uwp.

Awesome Lists containing this project

README

        

#Introduction
This is a pull to refresh listview for uwp(universal windows platform)

You can use this listview with the follow codes:



<local:PullToRefreshListView x:Name="lv"
PullPartTemplate="Pull" ReleasePartTemplate="Release"
RefreshContent="lv_RefreshContent" MoreContent="lv_MoreContent"/>



private async void lv_RefreshContent(object sender, EventArgs e)
{
progressBar.Visibility = Visibility.Visible;
await Task.Delay(2000);
for (int i = 0; i < 10; i++)
{
Data.Insert(0, "New One");
}
progressBar.Visibility = Visibility.Collapsed;
}

private async void lv_MoreContent(object sender, EventArgs e)
{
progressBar.Visibility = Visibility.Visible;
await Task.Delay(2000);
for (int i = 0; i < 10; i++)
{
Data.Add("Old One");
}
progressBar.Visibility = Visibility.Collapsed;
}

For more information, to see the SamplePage in source.