TriggerTopRefresh() 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 TriggerTopRefresh ( ) : void
return void
コード例 #1
0
            public override void DraggingEnded(UIScrollView scrollView, bool willDecelerate)
            {
                if (Container.topRefreshView != null)
                {
                    checkForRefresh = false;
                    if (Container.TableView.ContentOffset.Y < 0 && Container.TableView.ContentOffset.Y <= -yboundary)
                    {
                        Container.TriggerTopRefresh(true);
                    }
                }

                if (Container.bottomRefreshView != null)
                {
                    checkForRefresh = false;
                    if (-this.TableScrollOffset() > yboundary)
                    {
                        Container.TriggerBottomRefresh(true);
                    }
                }
            }