TriggerRefresh() public method

Invoke this method to trigger a data refresh.
This will invoke the RerfeshRequested event handler, the code attached to it should start the background operation to fetch the data and when it completes it should call ReloadComplete to restore the control state.
public TriggerRefresh ( ) : void
return void
コード例 #1
0
        public void Refresh()
        {
            if (null == dv)
            {
                return;
            }
            else
            {
                dv.TriggerRefresh();
            }

            return;
        }
コード例 #2
0
            public override void DraggingEnded(UIScrollView scrollView, bool willDecelerate)
            {
                if (Container.refreshView == null)
                {
                    return;
                }

                checkForRefresh = false;
                if (Container.TableView.ContentOffset.Y > -yboundary)
                {
                    return;
                }
                Container.TriggerRefresh(true);
            }