Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/tmyt/uwp_pulltorefreshlistview
- Owner: tmyt
- License: apache-2.0
- Created: 2015-10-11T15:42:07.000Z (about 9 years ago)
- Default Branch: somefixes
- Last Pushed: 2015-10-11T15:42:34.000Z (about 9 years ago)
- Last Synced: 2024-10-12T14:12:24.399Z (2 months ago)
- Language: C#
- Size: 152 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.