Пример #1
0
        public override bool CanSwipeToState(SWTableViewCell cell, SWCellState state)
        {
            switch (state)
            {
            case SWCellState.Left:
                // set to false to disable all left utility buttons appearing
                return(false);

            case SWCellState.Right:
                // set to false to disable all right utility buttons appearing
                return(true);
            }
            return(true);
        }
Пример #2
0
            public override void ScrollingToState(SWTableViewCell cell, SWCellState state)
            {
                switch (state)
                {
                case SWCellState.Center:
                    Console.WriteLine("utility buttons closed");
                    break;

                case SWCellState.Left:
                    Console.WriteLine("left utility buttons open");
                    break;

                case SWCellState.Right:
                    Console.WriteLine("right utility buttons open");
                    break;
                }
            }
Пример #3
0
        public override void ScrollingToState(SWTableViewCell cell, SWCellState state)
        {
            switch (state)
            {
            case SWCellState.Center:
                Console.WriteLine("utility buttons closed");
                cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
                break;

            case SWCellState.Left:
                Console.WriteLine("left utility buttons open");
                break;

            case SWCellState.Right:
                Console.WriteLine("right utility buttons open");
                cell.Accessory = UITableViewCellAccessory.None;
                break;
            }
        }
 public void HideSwipedContent(bool animated)
 {
     cellScrollView.SetContentOffset(new PointF(ScrollLeftViewWidth, 0), animated);
     cellState = SWCellState.Center;
     OnScrolling();
 }
 public void HideSwipedContent(bool animated)
 {
     cellScrollView.SetContentOffset(new PointF(ScrollLeftViewWidth, 0), animated);
     cellState = SWCellState.Center;
     OnScrolling();
 }
Пример #6
0
			public override bool CanSwipeToState(SWTableViewCell.SWTableViewCell cell, SWCellState state)
			{
				switch (state)
				{
					case SWCellState.Left:
						// set to false to disable all left utility buttons appearing
						return true;
					case SWCellState.Right:
						// set to false to disable all right utility buttons appearing
						return true;
				}
				return true;
			}
Пример #7
0
			public override void ScrollingToState(SWTableViewCell.SWTableViewCell cell, SWCellState state)
			{
				switch (state)
				{
					case SWCellState.Center:
						Console.WriteLine("utility buttons closed");
						break;
					case SWCellState.Left:
						Console.WriteLine("left utility buttons open");
						break;
					case SWCellState.Right:
						Console.WriteLine("right utility buttons open");
						break;
				}
			}