private void ScrollToTop(object sender, TappedRoutedEventArgs e) { if (ViewModel != null && ViewModel.Statuses.Any()) { StatusListView.ScrollIntoView(ViewModel.Statuses.First()); } }
public async Task Fetch() { try { var fetch = await App.Tail.TwitterAPI.GetConversationAsync(App.Tail.Account.GetAccountGroup(parent.Issuer[0]).AccountForRead, parent.ID); StatusListView.Items.Clear(); DataStatus orig = null; foreach (var status in fetch) { if (status.ID == parent.ID) { orig = status; } StatusListView.Items.Add(status); } if (orig != null) { StatusListView.ScrollTo(orig, ScrollToPosition.MakeVisible, true); } } catch (Exception e) { Util.HandleException(e); } }
private void FavoriteButton_Clicked(object sender, EventArgs e) { var listview = new StatusListView { Fetchable = new AccountFetch.Favorites(App.Tail, issuer, binding) }; App.Navigation.PushAsync(new ContentPage() { Style = (Style)Application.Current.Resources["backgroundStyle"], Content = listview, Title = binding.NickName + "님의 관심글" }); }
private void MentionButton_Clicked(object sender, EventArgs e) { var listview = new StatusListView { Fetchable = new AccountFetch.Search(App.Tail, issuer, "to:@" + binding.ScreenName, true) }; App.Navigation.PushAsync(new ContentPage() { Style = (Style)Application.Current.Resources["backgroundStyle"], Content = listview, Title = binding.NickName + "님에게 가고있는 멘션" }); }
private void FilesNotFound(string stationName) { ListViewItem li = new ListViewItem(); li.ForeColor = Color.Red; li.Text = stationName; this.Invoke((MethodInvoker) delegate { progressBar1.PerformStep(); progressBar1.Refresh(); StatusListView.Items.Add(li); StatusListView.Refresh(); }); }
public void ScrollToRoot() { StatusListView.ScrollToRoot(); }