private async void LoadData() { this.favoriteDS = new FavoritePostDS(); this.favoriteDS.OnLoadMoreStarted += TitleControl.DS_OnLoadMoreStarted; this.favoriteDS.OnLoadMoreCompleted += TitleControl.DS_OnLoadMoreCompleted; this.gv_FavoritePosts.ItemsSource = this.favoriteDS; this.gv_SimplePosts.ItemsSource = this.favoriteDS; await this.favoriteDS.Refresh(); this.DataContext = this.favoriteDS; }
private async void LoadData() { //FunctionHelper.Functions.RefreshUIOnDataLoading(this.pb_Top, this.appbar); this.favoritePostsDS = new FavoritePostDS(); this.favoritePostsDS.OnLoadMoreStarted += favoritePostsDS_OnLoadMoreStarted; this.favoritePostsDS.OnLoadMoreCompleted += favoritePostsDS_OnLoadMoreCompleted; this.lv_Favorites.ItemsSource = this.favoritePostsDS; await this.favoritePostsDS.LoadMoreItemsAsync(20); //FunctionHelper.Functions.RefreshUIOnDataLoaded(this.pb_Top, this.appbar); }