예제 #1
0
        /// <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;
        }
예제 #2
0
 /// <summary>
 /// The OnPullToRefreshEvent.
 /// </summary>
 /// <param name="args">The args<see cref="XFPullToRefreshEventArgs"/>.</param>
 internal void OnPullToRefreshEvent(XFPullToRefreshEventArgs args)
 {
     OnPullToRefresh?.Invoke(this, args);
 }