コード例 #1
0
 SimpleBox panel; //panel
 public TreeView(int width, int height)
     : base(width, height)
 {
     //panel for listview items
     this.panel = new SimpleBox(width, height);
     panel.ContentLayoutKind = BoxContentLayoutKind.VerticalStack;
     panel.BackColor         = Color.LightGray;
     uiList = new UICollection(this);
     uiList.AddUI(panel);
 }
コード例 #2
0
        Box _panel; //panel

        public TreeView(int width, int height)
            : base(width, height)
        {
            //panel for listview items
            _panel = new Box(width, height);
            _panel.ContentLayoutKind = BoxContentLayoutKind.VerticalStack;
            _panel.BackColor         = Color.LightGray;
            _panel.NeedClipArea      = true;
            _uiList = new UICollection(this);
            _uiList.AddUI(_panel);
        }
コード例 #3
0
        public ListView(int width, int height)
            : base(width, height)
        {
            uiList = new UICollection(this);

            var simpleBox = new SimpleBox(width, height);

            simpleBox.ContentLayoutKind   = BoxContentLayoutKind.VerticalStack;
            simpleBox.BackColor           = Color.LightGray;
            simpleBox.MouseDown          += panel_MouseDown;
            simpleBox.MouseDoubleClick   += panel_MouseDoubleClick;
            simpleBox.AcceptKeyboardFocus = true;
            simpleBox.KeyDown            += simpleBox_KeyDown;

            this.panel = simpleBox;
            uiList.AddUI(panel);
        }