WinForms designer properties of different derived types
问题 Say I have a particular type that I want to make available to the Windows Forms designer... public class Style { public CustomBrush Brush { get; set; } } And CustomBrush is implemented like so... public abstract CustomBrush { ... } public SolidCustomBrush : CustomBrush { ... } public GradientCustomBrush : CustomBrush { ... } Is there a way at design time that I can choose from any of the types derived from CustomBrush , instantiate an instance of the selected type, and modify it via the