/// <summary> /// The RefreshData. /// </summary> private void RefreshData() { var refobj = new XFPullToRefreshEventArgs(); _parent.OnPullToRefreshEvent(refobj); foreach (var item in refobj.NewItems) { _parent.DataSource.Add(item); } _listView.ItemsSource = null; _listView.ItemsSource = _parent.DataSource; }
/// <summary> /// The OnPullToRefreshEvent. /// </summary> /// <param name="args">The args<see cref="XFPullToRefreshEventArgs"/>.</param> internal void OnPullToRefreshEvent(XFPullToRefreshEventArgs args) { OnPullToRefresh?.Invoke(this, args); }