M
Marco Segurini
Hi All,
I have a form containing only a PropertyGrid that I use to modify an
instance of the following class:
class MyClass
{
Point _point = new Point();
[CategoryAttribute("Drawing")]
public Point MyPoint
{
get { return _point; }
set { _point = value; }
}
}
All works fine.
Now if I add
this._propertyGrid.BrowsableAttributes
= new AttributeCollection(
new Attribute[] { new CategoryAttribute("Drawing") });
to the form's initialization code: what happens is that "MyPoint"
property does not more expand in the PropertyGrid.
Is there a way to apply the CategoryAttribute only to the first level of
properties?
TIA.
Marco.
I have a form containing only a PropertyGrid that I use to modify an
instance of the following class:
class MyClass
{
Point _point = new Point();
[CategoryAttribute("Drawing")]
public Point MyPoint
{
get { return _point; }
set { _point = value; }
}
}
All works fine.
Now if I add
this._propertyGrid.BrowsableAttributes
= new AttributeCollection(
new Attribute[] { new CategoryAttribute("Drawing") });
to the form's initialization code: what happens is that "MyPoint"
property does not more expand in the PropertyGrid.
Is there a way to apply the CategoryAttribute only to the first level of
properties?
TIA.
Marco.