I have the following Properties
[DefaultValue(true), Category("Behavior")]
public bool EnableBinding { get; set; }
[DefaultValue(false), Category("Behavior")]
public bool NeedApprove { get; set; }
When changed using the designer and save then rebuild, the new values you set through designer will remain only with the property NeedApprove. EnableBinding is always getting reset to false.
Tried
1) DesignerSerializationVisibility attributes, but didnt work!
- Visible
- Hidden
- Content
2) Converting auto property to full property This worked. But why? Can not we achieve this without converting to a full property?