public TabStrip(ProjectProperties control) { SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); m_Items = new TabItemCollection(control); BackColor = Color.Transparent; }
public PropertiesView() { var props = new ProjectProperties(); props.Dock = System.Windows.Forms.DockStyle.Fill; var tp = new TabPage(); tp.Controls.Add(new System.Windows.Forms.Button()); var ti = new TabItem("General", tp); props.TabItems.Add(ti); props.TabItems.Add(new TabItem("Signing")); props.TabItems.Add(new TabItem("Reference Paths")); props.TabItems.Add(new TabItem("Build Events")); props.TabItems.Add(new TabItem("Build")); props.TabItems.Add(new TabItem("Debug")); foreach (TabItem item in props.TabItems) { item.ForeColor = System.Drawing.Color.FromArgb(37, 37, 38); } _view = props; }
/// <summary> /// TabItemCollection Constructor /// </summary> /// <param name="parent"></param> public TabItemCollection(ProjectProperties parent) { m_Items = new ArrayList(); m_Parent = parent; }