コード例 #1
0
ファイル: CustomElement.cs プロジェクト: zjdgx/CodeHub
        public override UITableViewCell GetCell(UITableView tv)
        {
            var cell = tv.DequeueReusableCell(CellReuseIdentifier) as OwnerDrawnCell;

            if (cell == null)
            {
                cell = new OwnerDrawnCell(this, Style, CellReuseIdentifier);
                OnCreateCell(cell);
            }
            else
            {
                cell.Element = this;
            }

            if (Tapped != null)
            {
                cell.Accessory      = UITableViewCellAccessory.DisclosureIndicator;
                cell.SelectionStyle = UITableViewCellSelectionStyle.Blue;
            }
            else
            {
                cell.Accessory      = UITableViewCellAccessory.None;
                cell.SelectionStyle = UITableViewCellSelectionStyle.None;
            }

            cell.BackgroundColor = BackgroundColor;
            cell.Update();
            return(cell);
        }
コード例 #2
0
        public override UITableViewCell GetCell (UITableView tv)
        {
            var cell = tv.DequeueReusableCell(CellReuseIdentifier) as OwnerDrawnCell;

            if (cell == null)
            {
                cell = new OwnerDrawnCell(this, Style, CellReuseIdentifier);
                OnCreateCell(cell);
            }
            else
            {
                cell.Element = this;
            }

            if (Tapped != null) {
                cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
                cell.SelectionStyle = UITableViewCellSelectionStyle.Blue;
            } 
            else 
            {
                cell.Accessory = UITableViewCellAccessory.None;
                cell.SelectionStyle = UITableViewCellSelectionStyle.None;
            }

            cell.BackgroundColor = BackgroundColor;
            cell.Update();
            return cell;
        }   
コード例 #3
0
		public override UITableViewCell GetCell (UITableView tv)
		{
			OwnerDrawnCell cell = tv.DequeueReusableCell(this.CellReuseIdentifier) as OwnerDrawnCell;
			
			if (cell == null)
			{
				cell = new OwnerDrawnCell(this.Style, this.CellReuseIdentifier);
			}
			
			cell.Element = this;
			return cell;
		}	
コード例 #4
0
        public override UITableViewCell GetCell(UITableView tv)
        {
            OwnerDrawnCell cell = tv.DequeueReusableCell(this.CellReuseIdentifier) as OwnerDrawnCell;

            if (cell == null)
            {
                cell = new OwnerDrawnCell(this, this.Style, this.CellReuseIdentifier);
                cell.Update();
            }

            return(cell);
        }
コード例 #5
0
        protected override UITableViewCell GetCellImpl(UITableView tv)
        {
            var cell = tv.DequeueReusableCell(this.CellReuseIdentifier) as OwnerDrawnCell;

            if (cell == null)
            {
                cell = new OwnerDrawnCell(this, this.Style, this.CellReuseIdentifier);
            }
            else
            {
                cell.Element = this;
            }

            cell.Update();
            return(cell);
        }
コード例 #6
0
        protected override UITableViewCell GetCellImpl(UITableView tv)
        {
            var cell = tv.DequeueReusableCell(this.CellReuseIdentifier) as OwnerDrawnCell;

            if (cell == null)
            {
                cell = new OwnerDrawnCell(this, this.Style, this.CellReuseIdentifier);
            }
            else
            {
                cell.Element = this;
            }

            cell.Update();
            return cell;
        }
コード例 #7
0
		public override UITableViewCell GetCell (UITableView tv)
		{
			OwnerDrawnCell cell = tv.DequeueReusableCell(this.CellReuseIdentifier) as OwnerDrawnCell;
			
			if (cell == null)
			{
				cell = new OwnerDrawnCell(this, this.Style, this.CellReuseIdentifier);
                cell.AutosizesSubviews = true;
                cell.AutoresizingMask = UIViewAutoresizing.FlexibleWidth;
                CellCreated(cell, cell.view);
			}
			else
			{
				cell.Element = this;
			}
			
			cell.Update();
			return cell;
		}	
コード例 #8
0
        public override UITableViewCell GetCell(UITableView tv)
        {
            OwnerDrawnCell cell = tv.DequeueReusableCell(this.CellReuseIdentifier) as OwnerDrawnCell;

            if (cell == null)
            {
                cell = new OwnerDrawnCell(this, this.Style, this.CellReuseIdentifier);
                cell.AutosizesSubviews = true;
                cell.AutoresizingMask  = UIViewAutoresizing.FlexibleWidth;
                CellCreated(cell, cell.view);
            }
            else
            {
                cell.Element = this;
            }

            cell.Update();
            return(cell);
        }
コード例 #9
0
ファイル: OwnerDrawnElement.cs プロジェクト: 21Off/21Off
		public override UITableViewCell GetCell (UITableView tv)
		{
			OwnerDrawnCell cell = tv.DequeueReusableCell(this.CellReuseIdentifier) as OwnerDrawnCell;
			
			if (cell == null)
			{
				cell = new OwnerDrawnCell(this, this.Style, this.CellReuseIdentifier)
				{
					SelectionStyle = SelectionStyle,
					Accessory = Accessory,
				};
			}
			else
			{
				cell.Element = this;
			}
			
			cell.Update();
			return cell;
		}	
コード例 #10
0
        public override UITableViewElementCell NewCell()
        {
            Cell = new OwnerDrawnCell(this, Style, Id);

            return(Cell);
        }
コード例 #11
0
		public override UITableViewElementCell NewCell()
		{
			Cell = new OwnerDrawnCell(this, Style, Id);

			return Cell;
		}
コード例 #12
0
ファイル: OwnerDrawnElement.cs プロジェクト: 21Off/21Off
			public OwnerDrawnCellView(OwnerDrawnElement element, OwnerDrawnCell cell)
			{
				this.element = element;
				this.cell = cell;
			}