I am interested in someone providing a sample that has a panel on a user control that contains a collection of controls available at design time. To put it simply I would like the following.
1. a user control
2. a panel control
3. a collection of, let's say, label controls that are accessible at design time that are contained on the panel
I understand the method to add a collection, or any control, to the properties window is <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)>. What I don't understand is 1. How to create the collection of controls and where to place the <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)>. 2. How to place the controls on the Panel at design time.
BTW, I haven't found this simple example on any of the forums. I think Microsoft should provide a decent example of this.
1. a user control
2. a panel control
3. a collection of, let's say, label controls that are accessible at design time that are contained on the panel
I understand the method to add a collection, or any control, to the properties window is <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)>. What I don't understand is 1. How to create the collection of controls and where to place the <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)>. 2. How to place the controls on the Panel at design time.
BTW, I haven't found this simple example on any of the forums. I think Microsoft should provide a decent example of this.