using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Forms.Design; namespace SA_LTT_UI.UserControls { [ Designer(typeof(TitleBoxDesigner)) ] public partial class TitleBox : UserControl { public TitleBox() { InitializeComponent(); } [ Category("Appearance"), DesignerSerializationVisibility(DesignerSerializationVisibility.Content) ] public Label Title { get { return lb_Title; } } [ Category("Appearance"), DesignerSerializationVisibility(DesignerSerializationVisibility.Content) ] public Panel WorkingArea { get { return this.pnl_WorkingArea; } } private void TitleBox_Load(object sender, EventArgs e) { } } public class TitleBoxDesigner : ParentControlDesigner { public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); if (this.Control is TitleBox) { this.EnableDesignMode(((TitleBox)this.Control).WorkingArea, "WorkingArea"); } } } }