コード例 #1
0
        private void InsertCell(LiquidFloatingCell cell)
        {
            var nfloat1 = Frame.Width * CellRadiusRatio;
            var nfloat2 = (Frame.Width - nfloat1) / 2f;

            cell.Frame        = new CGRect(nfloat2, nfloat2, nfloat1, nfloat1);
            cell.Color        = Color;
            cell.ActionButton = this;
            // ISSUE: reference to a compiler-generated method
            InsertSubviewAbove(cell, _baseView);
        }
コード例 #2
0
        protected internal virtual void OnCellSelected(LiquidFloatingCell target)
        {
            var cellSelected = CellSelected;

            if (cellSelected == null)
            {
                return;
            }
            var index = Array.IndexOf(CellArray(), target);

            cellSelected(this, new CellSelectedEventArgs(target, index));
        }
コード例 #3
0
 public CellSelectedEventArgs(LiquidFloatingCell cell, int index)
 {
     Cell  = cell;
     Index = index;
 }