Exemplo n.º 1
0
 private void UpdateIsEnabled(CheckBoxCellView cell, CheckBoxCell checkBoxCell)
 {
     cell.Enabled = checkBoxCell.IsEnabled;
     if (cell.AccessoryView is ACheckBox aCheckBox)
     {
         aCheckBox.Enabled = checkBoxCell.IsEnabled;
     }
 }
Exemplo n.º 2
0
        protected override AView GetCellCore(Xamarin.Forms.Cell item, AView convertView, ViewGroup parent, Context context)
        {
            var cell = (CheckBoxCell)Cell;

            if ((_view = convertView as CheckBoxCellView) == null)
            {
                _view = new CheckBoxCellView(context, item);
            }

            _view.Cell = cell;

            UpdateText();
            UpdateChecked();
            UpdateHeight();
            UpdateIsEnabled(_view, cell);

            return(_view);
        }