Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public ImageViewHandler()
 {
     Control = new EtoImageView {
         Handler = this, ImageScaling = NSImageScale.ProportionallyUpOrDown
     };
 }
Exemplo n.º 3
0
 public ImageViewHandler()
 {
     Control = new EtoImageView {
         Handler = this
     };
 }