MonoTouch.Dialog.DialogViewController.TriggerTopRefresh C# (CSharp) Method

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
		public void TriggerTopRefresh ()
		{
			TriggerTopRefresh (false);
		}
		

Same methods

DialogViewController::TriggerTopRefresh ( bool showStatus ) : void

Usage Example

示例#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);
                    }
                }
            }