Ejemplo n.º 1
0
        private NSView GetOrCreateViewFor(NSTableView tableView, NSTableColumn tableColumn)
        {
            var view           = tableView.MakeView(tableColumn.Identifier, this);
            var bindableColumn = tableColumn as MvxTableColumn;

            if (bindableColumn != null)
            {
                if (view == null)
                {
                    view = new MvxTableCellView(bindableColumn.BindingText);
                }
                else
                {
                    IMvxBindingContextOwner bindableView = view as IMvxBindingContextOwner;
                    bindableView.CreateBindingContext(bindableColumn.BindingText);
                }
            }
            return(view);
        }