예제 #1
0
        public TreeViewHandler()
        {
            Control = new EtoOutlineView {
                Handler  = this,
                Delegate = new EtoOutlineDelegate {
                    Handler = this
                },
                DataSource = new EtoDataSource {
                    Handler = this
                },
                HeaderView = null,
                AutoresizesOutlineColumn = true,
                AllowsColumnResizing     = false,
                ColumnAutoresizingStyle  = NSTableViewColumnAutoresizingStyle.FirstColumnOnly
            };
            var col = new NSTableColumn {
                DataCell = new MacImageListItemCell {
                    UsesSingleLineMode = true
                }
            };


            Control.AddColumn(col);
            Control.OutlineTableColumn = col;

            Scroll = new NSScrollView {
                HasVerticalScroller   = true,
                HasHorizontalScroller = true,
                AutohidesScrollers    = true,
                BorderType            = NSBorderType.BezelBorder,
                DocumentView          = Control
            };
        }
예제 #2
0
 public TreeGridViewHandler()
 {
     Control = new EtoOutlineView
     {
         Handler  = this,
         Delegate = new EtoOutlineDelegate {
             Handler = this
         },
         DataSource = new EtoDataSource {
             Handler = this
         },
         //HeaderView = null,
         //AutoresizesOutlineColumn = true,
         //AllowsColumnResizing = false,
         AllowsColumnReordering  = false,
         FocusRingType           = NSFocusRingType.None,
         ColumnAutoresizingStyle = NSTableViewColumnAutoresizingStyle.None
     };
 }
예제 #3
0
        protected override void Initialize()
        {
            Control = new EtoOutlineView {
                Handler  = this,
                Delegate = new EtoOutlineDelegate {
                    Handler = this
                },
                DataSource = new EtoDataSource {
                    Handler = this
                },
                //HeaderView = null,
                //AutoresizesOutlineColumn = true,
                //AllowsColumnResizing = false,
                AllowsColumnReordering  = false,
                FocusRingType           = NSFocusRingType.None,
                ColumnAutoresizingStyle = NSTableViewColumnAutoresizingStyle.None
            };

            base.Initialize();
        }