Creating a Container ControlDesigner
If you associate a custom control with a ContainerControlDesigner
, you can add child controls to your control in Design view. For example, the file in Listing 36.34 contains a GradientPanel
control. This control displays a gradient background behind its contents (see Figure 36.16).
Figure 36.16. Displaying the GradientPanel
control.
Listing 36.34. GradientPanel.cs
The GradientPanel
control uses an Internet ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.