private void UpdateIsEnabled(CheckBoxCellView cell, CheckBoxCell checkBoxCell) { cell.Enabled = checkBoxCell.IsEnabled; if (cell.AccessoryView is ACheckBox aCheckBox) { aCheckBox.Enabled = checkBoxCell.IsEnabled; } }
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); }