I have a UserControl with a public property using the following attributes:
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.H
Try using a private field with the property's accessor methods along with the [field: NonSerialized] attribute:
[field: NonSerialized]
private MyType _MyProperty;
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public MyType MyProperty
{
get
{
return _MyProperty;
}
set
{
_MyProperty = value;
}
}