/// <summary> /// 构造函数 /// </summary> /// <param name="itemList">Group里的Item</param> internal protected GroupBoxEx(GroupAttsData data, AutoLayoutPanel ownerAutoPanel) { this.OwnerAutoPanel = ownerAutoPanel; this.TabStop = false; this._itemList = data; this._autoAttribute = data.AutoAttributeDatas[0].Attribute; this._PaintBorder = data.AutoAttributeDatas[0].Attribute.GroupBoxPaintBorder; ///这里是根据是否使用groupBox的属性来区别,当前是要创建 groupBox this._isGroupBox = data.AutoAttributeDatas[0].Attribute.GroupBoxUseWinStyle; if (_isGroupBox) { _innerGroupBox = new GroupBox(); _innerGroupBox.TabStop = false; } this.LayoutOwnControl(); }
public AutoAttributeData(MemberInfo propertyInfo, AutoLayoutPanelAttribute attribute) { this.Attribute = attribute; this.Property = propertyInfo; }