示例#1
0
        public override NSView GetCell(Cell item, NSView reusableView, NSTableView tv)
        {
            var viewCell = (ViewCell)item;

            var cell = reusableView as ViewCellNSView;

            if (cell == null)
            {
                cell = new ViewCellNSView();
            }
            else
            {
                cell.ViewCell.PropertyChanged -= ViewCellPropertyChanged;
            }

            viewCell.PropertyChanged += ViewCellPropertyChanged;
            cell.ViewCell             = viewCell;

            SetRealCell(item, cell);

            WireUpForceUpdateSizeRequested(item, cell, tv);

            UpdateBackground(cell, item);
            UpdateIsEnabled(cell, viewCell);
            return(cell);
        }
示例#2
0
 static void UpdateIsEnabled(ViewCellNSView cell, ViewCell viewCell)
 {
     //TODO: Implement IsEnabled on ViewCell
 }