1

This seems like a bug:

the code below works fine:

this.propertyGrid1.SelectedObject = new Button();

the code below doesn't:

this.propertyGrid1.BrowsableAttributes = new AttributeCollection(
     new CategoryAttribute("Layout"));
this.propertyGrid1.SelectedObject = new Button();

Size, Location, ... Properties in PropertyGrid can't be expanded.

Simon Mourier
  • 132,049
  • 21
  • 248
  • 298
Kendo Wang
  • 51
  • 1
  • 3
  • 1
    I think it's because the sub objects properties (X, Y, etc.) in Size and Location are not in the Layout Category, which makes BrowsableAttributes less interesting to use IMHO. – Simon Mourier Mar 07 '13 at 08:01

0 Answers0