MonoTouch.Dialog.DialogViewController.TriggerTopRefresh C# (CSharp) 메소드

TriggerTopRefresh() 공개 메소드

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
리턴 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);
                    }
                }
            }