Adding custom properties
1 answer
The designer automatically reads the properties of the class and adds them to the property view. So all you have to do is create a property using a public getter and setter
public AnimationType AnimationType { get; set; }
There are additional attributes that you can apply to the property, such as DefaultValue or EditorBrowsable , which change the way you view in the Properties view. All relevant attributes are in the System.ComponentModel namespace .
+1
a source to share