private void LoadData() { this.topLikeDS = new TenDaysTopLikePostsDS(); this.topLikeDS.OnLoadMoreStarted += TitleControl.DS_OnLoadMoreStarted; this.topLikeDS.OnLoadMoreCompleted += TitleControl.DS_OnLoadMoreCompleted; this.gv_BestPosts.ItemsSource = this.topLikeDS; this.gv_SimplePosts.ItemsSource = this.topLikeDS; this.DataContext = this.topLikeDS; }
private async void LoadData() { //FunctionHelper.Functions.RefreshUIOnDataLoading(this.pb_Top, this.appbar); this.bestPostsDS = new TenDaysTopLikePostsDS(); this.bestPostsDS.OnLoadMoreStarted += bestPostsDS_OnLoadMoreStarted; this.bestPostsDS.OnLoadMoreCompleted += bestPostsDS_OnLoadMoreCompleted; this.lv_BestPosts.ItemsSource = this.bestPostsDS; await this.bestPostsDS.LoadMoreItemsAsync(20); //FunctionHelper.Functions.RefreshUIOnDataLoaded(this.pb_Top, this.appbar); }