public override NSView GetViewForItem(NSTableView tableView, NSTableColumn tableColumn, int row, NSObject obj, Func <NSObject, int, object> getItem) { var view = tableView.MakeView(tableColumn.Identifier, tableView) as EtoImageView; if (view == null) { view = new EtoImageView { Identifier = tableColumn.Identifier }; } var args = new MacCellFormatArgs(ColumnHandler.Widget, getItem(obj, row), row, view); ColumnHandler.DataViewHandler.OnCellFormatting(args); return(view); }
public ImageViewHandler() { Control = new EtoImageView { Handler = this, ImageScaling = NSImageScale.ProportionallyUpOrDown }; }
public ImageViewHandler() { Control = new EtoImageView { Handler = this }; }