MonoTouch.Dialog.RefreshTableHeaderView.SetStatus C# (CSharp) Method

SetStatus() public method

public SetStatus ( RefreshViewStatus status ) : void
status RefreshViewStatus
return void
		public virtual void SetStatus (RefreshViewStatus status)
		{
			if (this.status == status)
				return;
			
			string s = ReleaseMessage;
	
			switch (status){
			case RefreshViewStatus.Loading:
				s = "Loading..."; 
				break;
				
			case RefreshViewStatus.PullToReload:
				s = PullMessage;
				break;
			}
			statusLabel.Text = s;
		}
		

Usage Example

示例#1
0
        /// <summary>
        /// Invoke this method to signal that a reload has completed, this will update the UI accordingly.
        /// </summary>
        public void ReloadComplete()
        {
            if (refreshView != null)
            {
                refreshView.LastUpdate = DateTime.Now;
            }
            if (!reloading)
            {
                return;
            }

            reloading = false;
            if (refreshView == null)
            {
                return;
            }

            refreshView.SetActivity(false);
            refreshView.Flip(false);
            UIView.BeginAnimations("doneReloading");
            UIView.SetAnimationDuration(0.3f);
            TableView.ContentInset = new UIEdgeInsets(0, 0, 0, 0);
            refreshView.SetStatus(RefreshViewStatus.PullToReload);
            UIView.CommitAnimations();
        }
All Usage Examples Of MonoTouch.Dialog.RefreshTableHeaderView::SetStatus