public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { // We show a drop down for editing the PaletteDrawBorders value. if ((context != null) && (context.Instance != null)) return UITypeEditorEditStyle.DropDown; else return base.GetEditStyle(context); }